summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-08-19 01:28:33 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-08-19 01:28:33 +0000
commitfc6e7f12b70ee716eb762d112acd43467466b2ae (patch)
tree944dcf267a46faacebc1fcebe165de2f13dce3b2 /test/integration
parenta256e4b1dc76b969ac593f9b5b9c39703820c297 (diff)
downloadredmine-fc6e7f12b70ee716eb762d112acd43467466b2ae.tar.gz
redmine-fc6e7f12b70ee716eb762d112acd43467466b2ae.zip
Small test refactoring, extract method.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3951 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/layout_test.rb4
1 files changed, 1 insertions, 3 deletions
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')