Test cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8475 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
bbba385198
commit
606ca39d10
11 files changed
+4
-40
No files matched your search
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user