Hey, I recently switched to Rails 3(.1) and, using rspec-rails 2.6.1, I find can no longer stub AR class methods, like :find. So, where Comment is an AR class, I can't do this: Comment.should_receive(:find).and_return(... What is the new way of doing this, please? Lille
on 2011-11-09 01:13
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.