Rspec problem "undefined method `should_recieve'"

Hello all,

I’ve been bashing my head against the wall this this one, and can find
anything about why this would be happening.

I keep getting "undefined method `should_recieve’ " when ever I’m
trying to mock a model with RSpec.

My Rspec code is the following:

before(:each) do
zipcode = 98117
xml = + “/spec/fixtures/feeds/


@weather =


The Error message is:

undefined method should_recieve' for #<Class:0x22ada80> /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ base.rb:1532 :inmethod_missing’

1530 send(method_id, *arguments)
1531 else
1532 super
1533 end
1534 end
1535# gem install syntax to get syntax highlighting

Anyone have any idea what’s going on??

Thanks in advance!

Try “receive” instead of “recieve”

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