Small test refactoring, extract method.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3951 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis
2010-08-19 01:28:33 +00:00
parent a256e4b1dc
commit fc6e7f12b7
2 changed files with 7 additions and 3 deletions
+1 -3
View File
@@ -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')