]> source.dussan.org Git - redmine.git/commitdiff
Test cleanup.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 2 Jan 2012 19:44:37 +0000 (19:44 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 2 Jan 2012 19:44:37 +0000 (19:44 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8475 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/api_test/attachments_test.rb
test/integration/api_test/issue_categories_test.rb
test/integration/api_test/issue_relations_test.rb
test/integration/api_test/issues_test.rb
test/integration/api_test/news_test.rb
test/integration/api_test/projects_test.rb
test/integration/api_test/queries_test.rb
test/integration/api_test/time_entries_test.rb
test/integration/api_test/users_test.rb
test/integration/api_test/versions_test.rb
test/test_helper.rb

index 73ded9b30675357e919a12827f94d9accedfb274..9beb8b09aa2de7b4880f284202be29417eecf854 100644 (file)
@@ -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
index df5967a34e60150b38d994e45000f6006a409837..af20a80ae3119a0d803b641fd7379f6f8dccc7ba 100644 (file)
@@ -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
index b73b98d24c725d0a32b649aedebb31d8e836d331..01dbe3da9caa7c41fe10034ca70c83090619cf65 100644 (file)
@@ -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
index 3a9c333bf347fec8fe7f036e624d60a32a9b2282..1b8a2d80f575567af4630569a8097cf9f9b7619c 100644 (file)
@@ -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
index 13b27917d98eb78135b4a138925dd496d632db15..a32ada947bc1d49b03437dd9289ae2a23de923d1 100644 (file)
@@ -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
index 729333bed79672cb76a29d21bd4f4708ada20b2d..beef58e47cc8b2e4dbd4bd4bb6c1cf0ee0203136 100644 (file)
@@ -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
index 915ca26fd23d27e1a7cd1e0919a2f215e133bffd..5b55342f73d48811447a3a4f5e375044c9b91fe9 100644 (file)
@@ -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
index fd63cce4dfc5ea82bb540f333ac1bb7c86f0af5e..1cfa02088a7fee98033b7fb27e5e409c90c9c66c 100644 (file)
@@ -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
index d5c15c128b3884cc3f393199330598009a75df4f..ab301fe182be720b9a37d4709dc79f01a28ef58e 100644 (file)
@@ -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
index f325d2c2508a877329edc6f31c1c78b6b40e2d4a..34416b68cf22d932ecc646b09197bab73f87a350 100644 (file)
@@ -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
index 2fa726ad5461f27adbf6157fdc296e5b9f83e7d0..c0947efc358b1b06a40c3d69e83bb1862b5abd37 100644 (file)
@@ -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'