summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index a1bccc0..250533d 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -7,13 +7,13 @@ class ActiveSupport::TestCase
#
# Note: You'll currently still have to declare fixtures explicitly in integration tests
# -- they do not yet inherit this setting
- set_fixture_class :cves => 'Cve'
+ set_fixture_class :cves => Cve
fixtures :all
# Add more helper methods to be used by all tests here...
def basic_auth_creds(user, password)
- "Basic #{ActiveSupport::Base64.encode64("#{username}:#{password}")}"
+ ActionController::HttpAuthentication::Basic.encode_credentials(user, password)
end
end \ No newline at end of file