From fc6e7f12b70ee716eb762d112acd43467466b2ae Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Thu, 19 Aug 2010 01:28:33 +0000 Subject: Small test refactoring, extract method. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3951 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/layout_test.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/integration') diff --git a/test/integration/layout_test.rb b/test/integration/layout_test.rb index 03d407d24..001bf50d2 100644 --- a/test/integration/layout_test.rb +++ b/test/integration/layout_test.rb @@ -13,9 +13,7 @@ class LayoutTest < ActionController::IntegrationTest end test "browsing to an unauthorized page should render the base layout" do - user = User.find(9) - user.password, user.password_confirmation = 'test', 'test' - user.save! + change_user_password('miscuser9', 'test') log_user('miscuser9','test') -- cgit v1.2.3