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/.
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to