[rspec-users] undefined method

kojilab o at kojilab.com
Mon Mar 29 17:41:08 EDT 2010


My test has the following line


In my model, I have 

def self.find_by_slug_and_owner_id(slug, owner_id)

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?

View this message in context: http://old.nabble.com/undefined-method-tp28075551p28075551.html
Sent from the rspec-users mailing list archive at Nabble.com.

More information about the rspec-users mailing list