[rspec-users] RSpec spec works on rails 3.2.0, fails on 3.2.0
dchelimsky at gmail.com
Tue Feb 14 17:45:29 EST 2012
On Tue, Feb 14, 2012 at 1:14 PM, Jason Floyd <lists at 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
> 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)
> 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.
More information about the rspec-users