search for: assert_success

Displaying 5 results from an estimated 5 matches for "assert_success".

2006 Jun 06
5
Functional tests and protected actions
Hello! I have certain methods in my Application Controller, that I need to access. Namely ApplicationController#logged_in_user The problem is, that when I try to access it, I get: NoMethodError: protected method `logged_in_user'' called for #<AdminController> Any ideas how I can circumvent that? Or are functional tests really not suited for any kind of logins and session work?
2006 May 13
0
integration: assert_template() always fails...
Hi Coders :-) Maybe somebody can help... My integration tests always fail when using assert_template() class ShopTest < ActionController::IntegrationTest def test_very_simple get("/shop/index") assert_success assert_template("/shop/index") end end the "/shop/index" is a valid url which renders flawlessly in the browser. however, the test will produce: 1) Failure: test_buy_an_article(ShopTest) [test/integration/shop_test.rb:22:in `test_buy_an_article'' c...
2007 Jan 07
3
slow tests on an established project...
Hi all Hope this isn''t too far off-topic on this list, as I think it would largely go ignored on the main rails list. I''m looking for the most pragmatic way to speed up our test suite. This is on an established project, and lets just say that we used way too many fixtures when we started =). For example: Finished in 128.870144 seconds. =============== 392 tests, 2106
2004 Nov 20
0
Stack level too deep on Cygwin and on Debian / Colinux with 0.5.0 - 0.8.5 Beta gems
...rescue_action(e) raise 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(StacktestControllerTe...
2006 May 04
6
second assert_tag failling in rails integration test
Hi all, I''m fairly new to rails and ruby, but I''ve come across an interesting glitch and I''m not sure whether I''ve just got something wrong with my assumptions or if it really is an error in the underlying framework... I''ve created a bare-bones set of tests to show you where the problem is. What follows are the steps I went through to reproduce the