summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2011-08-29 14:52:25 +0200
committerAlex Legler <alex@a3li.li>2011-08-29 14:52:25 +0200
commit5ccff1fba881c94fb32f707ebddaae0c3a23d825 (patch)
tree8658d2e8cdad0ae0088f58d0a1739dda6103700f /test
parentAdd inflection for 'cve' (diff)
downloadglsamaker-5ccff1fba881c94fb32f707ebddaae0c3a23d825.tar.gz
glsamaker-5ccff1fba881c94fb32f707ebddaae0c3a23d825.tar.bz2
glsamaker-5ccff1fba881c94fb32f707ebddaae0c3a23d825.zip
Use built-in HTTP_AUTHORIZATION build helper
Diffstat (limited to 'test')
-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