On Tue, Feb 14, 2012 at 1:14 PM, Jason Floyd <li...@ruby-forum.com> wrote: > I have a spec that passes in rails 3.2.0, but fails in 3.2.1, and I have > no idea why. > > Here's the spec: > > it "can be shown on the company menu" do > doclib = Factory(:document_library, title: 'Test', menu: false, > company: true) > doclib.should be_valid > end > > Here's the error message I get when running rspec: > > 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)>' > > > Other specs in this project using Factory Girl pass after the upgrade to > 3.2.1, but not > this one. What gives?
Please run "rspec spec/models/document_library_spec.rb --backtrace" and post the output. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users