search for: test_should_get_new

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

2012 Jun 26
2
Error with rake command
...ot;Post.count" didn''t change by -1. <1> expected but was <2>. 3) Failure: test_should_get_edit(PostsControllerTest) [/home/ms/Desktop/rails3/blog/test/functional/posts_controller_test.rb:34]: Expected response to be a <:success>, but was <401> 4) Failure: test_should_get_new(PostsControllerTest) [/home/ms/Desktop/rails3/blog/test/functional/posts_controller_test.rb:16]: Expected response to be a <:success>, but was <401> 5) Error: test_should_update_post(PostsControllerTest): ActionController::RoutingError: No route matches {:action=>"show",...
2008 Jan 21
9
DRY act_as_authenticated functional testing
I''m using the acts_as_authenticated plug-in for my app. Now I need to get my functional tests to work properly. I have not written functional tests before so I''m unsure how to utilize setup so that all of my tests can use the login. My tests pass if I put login_as :user inside of each test, but that''s clearly not DRY. Can I add something to my test_helper.rb file or