Commit b341ed2e authored by jplang's avatar jplang

Test cleanup.

git-svn-id: https://svn.redmine.org/redmine/trunk@8475 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 06bbde46
......@@ -83,8 +83,4 @@ class ApiTest::AttachmentsTest < ActionController::IntegrationTest
end
end
end
def credentials(user, password=nil)
ActionController::HttpAuthentication::Basic.encode_credentials(user, password || user)
end
end
......@@ -120,8 +120,4 @@ class ApiTest::IssueCategoriesTest < ActionController::IntegrationTest
assert_nil IssueCategory.find_by_id(1)
end
end
def credentials(user, password=nil)
ActionController::HttpAuthentication::Basic.encode_credentials(user, password || user)
end
end
......@@ -103,8 +103,4 @@ class ApiTest::IssueRelationsTest < ActionController::IntegrationTest
end
end
end
def credentials(user, password=nil)
ActionController::HttpAuthentication::Basic.encode_credentials(user, password || user)
end
end
......@@ -576,8 +576,4 @@ class ApiTest::IssuesTest < ActionController::IntegrationTest
assert_nil Issue.find_by_id(6)
end
end
def credentials(user, password=nil)
ActionController::HttpAuthentication::Basic.encode_credentials(user, password || user)
end
end
......@@ -95,8 +95,4 @@ class ApiTest::NewsTest < ActionController::IntegrationTest
end
end
end
def credentials(user, password=nil)
ActionController::HttpAuthentication::Basic.encode_credentials(user, password || user)
end
end
......@@ -290,8 +290,4 @@ class ApiTest::ProjectsTest < ActionController::IntegrationTest
end
end
end
def credentials(user, password=nil)
ActionController::HttpAuthentication::Basic.encode_credentials(user, password || user)
end
end
......@@ -56,8 +56,4 @@ class ApiTest::QueriesTest < ActionController::IntegrationTest
end
end
end
def credentials(user, password=nil)
ActionController::HttpAuthentication::Basic.encode_credentials(user, password || user)
end
end
......@@ -145,8 +145,4 @@ class ApiTest::TimeEntriesTest < ActionController::IntegrationTest
assert_nil TimeEntry.find_by_id(2)
end
end
def credentials(user, password=nil)
ActionController::HttpAuthentication::Basic.encode_credentials(user, password || user)
end
end
......@@ -312,8 +312,4 @@ class ApiTest::UsersTest < ActionController::IntegrationTest
end
end
end
def credentials(user, password=nil)
ActionController::HttpAuthentication::Basic.encode_credentials(user, password || user)
end
end
......@@ -121,8 +121,4 @@ class ApiTest::VersionsTest < ActionController::IntegrationTest
end
end
end
def credentials(user, password=nil)
ActionController::HttpAuthentication::Basic.encode_credentials(user, password || user)
end
end
......@@ -62,6 +62,10 @@ class ActiveSupport::TestCase
ActiveSupport::TestCase.fixture_path + "/files/#{name}", mime, true)
end
def credentials(user, password=nil)
ActionController::HttpAuthentication::Basic.encode_credentials(user, password || user)
end
# Mock out a file
def self.mock_file
file = 'a_file.png'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment