1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-24 01:11:12 +00:00

Test cleanup.

git-svn-id: http://svn.redmine.org/redmine/trunk@13678 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-11-30 15:02:47 +00:00
parent ef5ff1630a
commit 78e6717ba7
2 changed files with 1 additions and 9 deletions

View 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

View 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