[rspec-users] controller code doesn't seem to be called within rspec test

Alexander Seidl lists at ruby-forum.com
Wed Oct 21 06:36:57 EDT 2009


i call current_user in the index-method, but the test fails and says:
"#<User::CategoriesController:0xb7439484> expected :current_user with
(any args) once, but received it 0 times"

Why?

Attachments:
http://www.ruby-forum.com/attachment/4166/pastie-663143.rb

-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list