Displaying 5 results from an estimated 5 matches for "response_assert".
2010 Feb 19
2
Problem with assert_redirected_to
...rt/lib/active_support/core_ext/string/access.rb:43:in
`first''
/blah/blah/blah/project/vendor/rails/actionpack/lib/action_controller/assertions/routing_assertions.rb:131:in
`recognized_request_for''
/blah/blah/blah/project/vendor/rails/actionpack/lib/action_controller/assertions/response_assertions.rb:70:in
`assert_redirected_to''
/blah/blah/blah/project/vendor/rails/actionpack/lib/action_controller/assertions/response_assertions.rb:62:in
`each''
/blah/blah/blah/project/vendor/rails/actionpack/lib/action_controller/assertions/response_assertions.rb:62:in
`assert_redire...
2007 Jan 21
0
Functional Test Fails with before filter in application.rb
...hentication
taken from Rails Recipies. Whenever I add:
assert_redirected_to :action => ''login''
I get the following error:
NoMethodError: undefined method `first'' for :user:Symbol
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/assertions/response_assertions.rb:72:in
`assert_redirected_to''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/assertions/response_assertions.rb:43:in
`assert_redirected_to''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/assertions.rb:60:in
`clean...
2007 Dec 24
1
Uninitialized constant in integration test
...ib/action_controller/routing.rb:1423:in
`recognize''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.1/lib/action_controller/assertions/routing_assertions.rb:138:in
`recognized_request_for''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.1/lib/action_controller/assertions/response_assertions.rb:70:in
`assert_redirected_to''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.1/lib/action_controller/assertions/response_assertions.rb:62:in
`each''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.1/lib/action_controller/assertions/response_assertions.rb:62:in
`ass...
2007 Feb 06
2
Testing RJS actions
...format.html { redirect_to articles_url }
format.js { render }
format.xml { head :ok }
end
end
This fails spectacularly:
1) Failure:
test_destroy_xhr(AuthenticatedArticlesControllerTest)
[/home/francois/src/config/../vendor/rails/actionpack/lib/action_controller/assertions/response_assertions.rb:112:in
`assert_template'
/home/francois/src/config/../vendor/rails/actionpack/lib/action_controller/assertions/response_assertions.rb:109:in
`assert_template'
./test/functional/articles_controller_test.rb:84:in `test_destroy_xhr'
/home/francois/src/config/../vendor...
2007 Dec 05
0
[CruiseControl] RubyOnRails build 8285 failed
The build failed.
CHANGES
-------
Revision 8284 committed by marcel on 2007-12-05 14:40:42
Add examples in the documentation for various assertions. Closes #9938 [zapnap]
M /trunk/actionpack/CHANGELOG
M /trunk/actionpack/lib/action_controller/assertions/response_assertions.rb
M /trunk/actionpack/lib/action_controller/assertions/dom_assertions.rb
M /trunk/actionpack/lib/action_controller/assertions/model_assertions.rb
Revision 8285 committed by marcel on 2007-12-05 14:47:44
Document the timestamps schema definition method. Closes #9000 [mikong]
M /trunk/act...