croceldon
2012-Feb-14 17:56 UTC
[rspec-users] Upgrading to rails 3.2.1 from 3.2.0 now causes my some specs to fail
I''m using rvm with ruby 1.9.3, and RubyGems at 1.8.16. All my specs pass with Rails 3.2, but at Rails 3.2.1, I get the following error: 1) DocumentLibrary can be shown on the company menu Failure/Error: doclib = Factory(:document_library, title: ''Test'', menu: false, company: true) ArgumentError: wrong number of arguments (0 for 1) # ./spec/models/document_library_spec.rb:6:in `block (2 levels) in <top (required)>'' What has changed from 3.2 to 3.2.1 to cause this error? Here''s the spec: require ''spec_helper'' describe DocumentLibrary do it "can be shown on the company menu" do doclib = Factory(:document_library, title: ''Test'', menu: false, company: true) doclib.should be_valid end it ''can be hidden/shown on the menu'' do doclib = Factory(:document_library, title: ''Test'', menu: false) doclib.should be_valid end it "has a unique title" do Factory(:document_library, title: ''Test'') doclib = DocumentLibrary.create(title: ''Test'') doclib.should_not be_valid doclib.title = ''different'' doclib.should be_valid end it "requires a title" do doclib = DocumentLibrary.create() doclib.should_not be_valid doclib.title = ''test'' doclib.should be_valid end end