Hi My test has the following line
Account.stub(:find_by_slug_and_owner_id).with("my-account", '1').and_return(mock_account) In my model, I have def self.find_by_slug_and_owner_id(slug, owner_id) [code] end But I am getting NoMethodError in 'AccountsController GET add person to account GET add user page verifies the account is live' undefined method `find_by_slug_and_owner_id' for #<Class:0x219e568> It looks like the Account class isn't used. All my other calls to Account.stub are working fine. I just added the slug column and ran rake db:test:prepare and load. What am I doing wrong? Thanks -- View this message in context: http://old.nabble.com/undefined-method-tp28075551p28075551.html Sent from the rspec-users mailing list archive at Nabble.com. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users