]> source.dussan.org Git - redmine.git/commitdiff
Test cleanup.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 30 Nov 2014 15:02:47 +0000 (15:02 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 30 Nov 2014 15:02:47 +0000 (15:02 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13678 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/layout_test.rb
test/test_helper.rb

index fd9ddc28eb646b7302e04468bbb467d669246bb1..b4f472a750a1378596d9c9e0072abdf66d65270d 100644 (file)
@@ -36,9 +36,7 @@ class LayoutTest < ActionDispatch::IntegrationTest
   end
 
   test "browsing to an unauthorized page should render the base layout" do
-    change_user_password('miscuser9', 'test1234')
-
-    log_user('miscuser9','test1234')
+    log_user('jsmith','jsmith')
 
     get "/admin"
     assert_response :forbidden
index b374a1422b69754cd3bb08f5d8636d5276a2c230..27acdfc9182d8e03bec70634e496f8c0c1d6834f 100644 (file)
@@ -132,12 +132,6 @@ class ActiveSupport::TestCase
     ::I18n.locale = saved_localed
   end
 
-  def change_user_password(login, new_password)
-    user = User.where(:login => login).first
-    user.password, user.password_confirmation = new_password, new_password
-    user.save!
-  end
-
   def self.ldap_configured?
     @test_ldap = Net::LDAP.new(:host => '127.0.0.1', :port => 389)
     return @test_ldap.bind