Sha256: f719c82e2423db7da64e88242251bfa85a6d6e757385b93dfc670c5394aee245

Contents?: true

Size: 400 Bytes

Versions: 14

Compression:

Stored size: 400 Bytes

Contents

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

module CryptoProviderTest
  class Sha256Test < ActiveSupport::TestCase
    def test_encrypt
      assert Authlogic::CryptoProviders::Sha256.encrypt("mypass")
    end

    def test_matches
      hash = Authlogic::CryptoProviders::Sha256.encrypt("mypass")
      assert Authlogic::CryptoProviders::Sha256.matches?(hash, "mypass")
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
refinerycms-0.9.6.34 vendor/plugins/authlogic/test/crypto_provider_test/sha256_test.rb
refinerycms-0.9.6.33 vendor/plugins/authlogic/test/crypto_provider_test/sha256_test.rb
refinerycms-0.9.6.32 vendor/plugins/authlogic/test/crypto_provider_test/sha256_test.rb
refinerycms-0.9.6.31 vendor/plugins/authlogic/test/crypto_provider_test/sha256_test.rb
refinerycms-0.9.6.30 vendor/plugins/authlogic/test/crypto_provider_test/sha256_test.rb
refinerycms-0.9.6.29 vendor/plugins/authlogic/test/crypto_provider_test/sha256_test.rb
refinerycms-0.9.6.28 vendor/plugins/authlogic/test/crypto_provider_test/sha256_test.rb
refinerycms-0.9.6.27 vendor/plugins/authlogic/test/crypto_provider_test/sha256_test.rb
refinerycms-0.9.6.26 vendor/plugins/authlogic/test/crypto_provider_test/sha256_test.rb
refinerycms-0.9.6.25 vendor/plugins/authlogic/test/crypto_provider_test/sha256_test.rb
refinerycms-0.9.6.24 vendor/plugins/authlogic/test/crypto_provider_test/sha256_test.rb
refinerycms-0.9.6.23 vendor/plugins/authlogic/test/crypto_provider_test/sha256_test.rb
refinerycms-0.9.6.22 vendor/plugins/authlogic/test/crypto_provider_test/sha256_test.rb
refinerycms-0.9.6.21 vendor/plugins/authlogic/test/crypto_provider_test/sha256_test.rb