Sha256: 6efbeeb39a28703430000ddba7c62a0832ab58a37183920fe2350caa8889db86

Contents?: true

Size: 404 Bytes

Versions: 11

Compression:

Stored size: 404 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper.rb'

module CryptoProviderTests
  class BCrpytTest < ActiveSupport::TestCase
    def test_encrypt
      assert Authlogic::CryptoProviders::BCrypt.encrypt("mypass")
    end
    
    def test_matches
      hash = Authlogic::CryptoProviders::BCrypt.encrypt("mypass")
      assert Authlogic::CryptoProviders::BCrypt.matches?(hash, "mypass")
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
authlogic-1.3.3 test/crypto_provider_tests/bcrypt_test.rb
authlogic-1.3.7 test/crypto_provider_tests/bcrypt_test.rb
authlogic-1.3.9 test/crypto_provider_tests/bcrypt_test.rb
authlogic-1.4.0 test/crypto_provider_tests/bcrypt_test.rb
authlogic-1.4.1 test/crypto_provider_tests/bcrypt_test.rb
authlogic-1.3.4 test/crypto_provider_tests/bcrypt_test.rb
authlogic-1.3.5 test/crypto_provider_tests/bcrypt_test.rb
authlogic-1.3.6 test/crypto_provider_tests/bcrypt_test.rb
authlogic-1.3.8 test/crypto_provider_tests/bcrypt_test.rb
authlogic-1.4.2 test/crypto_provider_tests/bcrypt_test.rb
authlogic-1.4.3 test/crypto_provider_tests/bcrypt_test.rb