RSpec spec works on rails 3.2.0, fails on 3.2.0

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?

I’m using ruby 1.9.3 with rvm.

Here’s my Gemfile:

gem ‘rails’, ‘3.2.1’
gem ‘mysql2’
gem ‘dynamic_form’
gem ‘friendly_id’
group :assets do
gem ‘sass-rails’, " ~> 3.2.3"
gem ‘coffee-rails’, “~> 3.2.1”
gem ‘uglifier’, ‘>= 1.0.3’
end
gem ‘jquery-rails’
gem ‘therubyracer’
gem ‘bcrypt-ruby’
gem ‘capistrano’
gem “paperclip”, :git => “git://github.com/thoughtbot/paperclip.git”

group :test, :development do
gem ‘rspec-rails’
gem ‘launchy’
gem ‘ruby-debug19’
gem ‘database_cleaner’
gem ‘capybara-webkit’
gem ‘spork’, ‘~> 0.9.0.rc’
gem ‘guard-spork’
end

group :development do
gem ‘fuubar’
gem ‘powder’
end

group :test do
gem ‘turn’, :require => false
gem ‘capybara’
gem ‘factory_girl_rails’
gem ‘guard-rspec’
end

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs