diff options
author | Alex Legler <alex@a3li.li> | 2011-08-29 14:52:25 +0200 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2011-08-29 14:52:25 +0200 |
commit | 5ccff1fba881c94fb32f707ebddaae0c3a23d825 (patch) | |
tree | 8658d2e8cdad0ae0088f58d0a1739dda6103700f /test | |
parent | Add inflection for 'cve' (diff) | |
download | glsamaker-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.rb | 4 |
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 |