[rspec-users] Problems with rspec 1.3.1 and Ruby 1.9.2

Brandon Ferguson bnferguson at gmail.com
Wed Dec 29 15:07:05 EST 2010


Recently was driving a spike on moving our app to Ruby 1.9 and ran
into some problems with out test suite. I could be totally off here as
I couldn't find much reference to rspec 1.3's ruby 1.9 compatibility.

The error I'm getting is:

NoMethodError in 'BusinessesController POST clear as a superuser in
non-production environments removes notifications if found in params'
undefined method `carrier_accounts' for #<Business:0x0000010c1d1750>
/Users/bnferguson/.rvm/gems/ruby-1.9.2-p0 at mobi/gems/activerecord-2.3.9/
lib/active_record/attribute_methods.rb:260:in `method_missing'
spec/controllers/businesses_controller_spec.rb:110:in `block (5
levels) in <top (required)>'

and the related code for that would be:
https://gist.github.com/5f1f968b93e028aaf210 (line 20 corresponding to

The gem list, versions, full error output, etc are here:

I'm getting something like ~1700 specs failing mostly from this and
"can't modify frozen object". Seems like this error is happening on a
lot of stub_model calls and mock_model calls. It's baffling. The can't
modify frozen object doesn't even give a stack trace.

Any clues? Such strange breaks.

More information about the rspec-users mailing list