public
Rubygem
Description: RSpec's official Ruby on Rails plugin
Clone URL: git://github.com/dchelimsky/rspec-rails.git

Comments for rspec-rails   feed

jmonteiro commented on dchelimsky/rspec-rails 3 months ago
Comment in 32187b5:

I am using restful-authentication, and now I am getting this failing test:
1)
NoMethodError in ‘SessionsController logout_keeping_session! forgets me’
undefined method `delete’ for #<Spec::Rails::Example::CookiesProxy:0xb6dbcac0>
/home/julio/workspace/proj/lib/authenticated_system.rb:178:in `kill_remember_cookie!’
/home/julio/workspace/proj/lib/authenticated_system.rb:138:in `logout_keeping_session!’
./spec/controllers/authenticated_system_spec.rb:54:
script/spec:4:
There is the method that is making the test fail:
def kill_remember_cookie!
cookies.delete :auth_token
end
If I comment "cookies.delete", the tests pass, of course. The "cookies" is, in fact, an instance of the "ActionController::CookieJar" class (nice name), and it extends from a Hash.

geoffgarside commented on dchelimsky/rspec-rails 3 months ago
Comment on generators/rspec_model/templates/model_spec.rb L8 in abcffab:

attribute.default_value should really be attribute.default.inspect