search for: assert_rendered_file

Displaying 2 results from an estimated 2 matches for "assert_rendered_file".

2006 Feb 01
3
Testing components
...Test < Test::Unit::TestCase def setup @controller = NewsController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new end # Replace this with your real tests. def test_content get :content assert_response :success assert_rendered_file "content" end end But running that gives me: 1) Error: test_content(NewsControllerTest): NoMethodError: undefined method `controller_path'' for NewsController:Class /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/test_process.rb:295:in `pr...
2004 Nov 20
0
Stack level too deep on Cygwin and on Debian / Colinux with 0.5.0 - 0.8.5 Beta gems
...se e end; end class StacktestControllerTest < Test::Unit::TestCase def setup @controller = StacktestController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new end def test_test process :test #assert_success #assert_rendered_file ''test'' end end ----- $ rake (in /home/Gul/stackleveltest) ruby1.8 -Ilib:test -e0 ruby1.8 -Ilib:test -e0 -rtest/functional/stacktest_controller_test Loaded suite -e Started E Finished in 0.049008 seconds. 1) Error: test_test(StacktestControllerTest): ActionView::TemplateEr...