[rspec-users] Controller spec gives strange error

Damian Terentiev lists at ruby-forum.com
Fri Jul 4 02:08:32 EDT 2008

Bryan Ray wrote:
> I believe the problem is that you're not telling the Language model
> what to stub/mock when it calls the find method inside of
> set_site_language.
> I'm not entirely sure, but I would imagine that the TestUnit test is
> passing, because it's using the full Rails stack to run the test.
> Try doing something like this (code below):

Thanks for your help!
Anyway, switching to Test::Spec has solved the problem.
Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list