rspec2
Refactoring spec code related at the end
I am using Ruby on Rails 3.1.0 and the rspec-rails 2 gem. I would like to refactor the following sample code in a my spec file:[详细]
2023-04-08 19:49 分类:问答Rspec with rails 3.1 gives DEPRECATION WARNING ActiveRecord::Associations::AssociationCollection is deprecated?
I upgraded to rails 3.1 and I have some problems with my tests now that worked perfectly before. I get the following warning before the tests:[详细]
2023-04-08 06:46 分类:问答How to make a class object instance to return a predefined value?
I am using Ruby on Rails 3.1.0 and the rspec-rails 2 gem. I am testing my controller code (BTW: I am newbie to rspec) and I would like to make possible that a class object instance returns a predefine[详细]
2023-04-08 06:00 分类:问答Trouble on testing a JavaScript redirection
I am using Ruby on Rails 3.1.0 and the rspec-rails 2 gem. I would like to test a JavaScript redirection but I am some trouble on doing that.[详细]
2023-04-08 00:44 分类:问答rspec+capybara+selenium+spork not closing browser
The same problem with rails tests as here, but on Mac OS X. And when I start specs next time, they hang on js specs until I close the browser manually. And those tests fail, I 开发者_Go百科need to re[详细]
2023-04-07 22:35 分类:问答Trouble on using the RSpec 'its' feature
I am using Ruby on Rails 3.0.9, RSpec-rails 2 and FactoryGirl. I am trying to use the RSpec its feature on a association model (in the following example it is :account) but I have some trouble.[详细]
2023-04-06 05:20 分类:问答How to set "programmatically"\"iteratively" each class object attribute to a value?
I am using Ruby on Rails 3.0.9 and RSpec 2. I am trying to refactoring some spec file in the following way (in order to test with less code similar class object attribute values):[详细]
2023-04-06 04:07 分类:问答Why is my conditional validation failing?
I have a conditional validation in my Post model: validates :title, :presence => true, :if => Proc.new { |post| post.post_type == \"text\" }[详细]
2023-04-06 01:59 分类:问答Trouble on specifying explicit 'subject's?
I am using Ruby on Rails 3.0.9 and RSpect 2. I am trying to refactoring some spec file in the following way (in order to test with less code similar User cl开发者_JS百科ass object attribute values):[详细]
2023-04-05 18:23 分类:问答Trouble on using multiple class object instances?
I am using Ruby on Rails 3.0.9 and RSpect 2. I am trying to refactoring some spec file in the following way (in order to test with less code similar User class object attribute values):[详细]
2023-04-05 18:19 分类:问答