Sha256: aa6ce1ec44fc765a14a4f27ee70e9d922310ca0611555da441b0f1dbffe02533

Contents?: true

Size: 988 Bytes

Versions: 9

Compression:

Stored size: 988 Bytes

Contents

require 'abstract_unit'
require 'fixtures/user'

class ShaSentryTest < Test::Unit::TestCase
  def test_foo
    assert true
  end
  
  #def setup
  #  Sentry::ShaSentry.salt = 'salt'
  #end
  #
  #def test_should_encrypt
  #  assert_equal 'f438229716cab43569496f3a3630b3727524b81b', Sentry::ShaSentry.encrypt('test')
  #end
  #
  #def test_should_encrypt_with_salt
  #  Sentry::ShaSentry.salt = 'different salt'
  #  assert_equal '18e3256d71529db8fa65b2eef24a69ddad7070f3', Sentry::ShaSentry.encrypt('test')
  #end
  #
  #def test_should_encrypt_user_password
  #  u = ShaUser.new :login => 'bob'
  #  u.password = u.password_confirmation = 'test'
  #  assert u.save
  #  assert u.crypted_password = 'f438229716cab43569496f3a3630b3727524b81b'
  #end
  #
  #def test_should_encrypt_user_password_without_confirmation
  #  u = DangerousUser.new :login => 'bob'
  #  u.password = 'test'
  #  assert u.save
  #  assert u.crypted_password = 'f438229716cab43569496f3a3630b3727524b81b'
  #end
end

Version data entries

9 entries across 9 versions & 5 rubygems

Version Path
loyal3-sentry-0.4.2 test/sha_sentry_test.rb
loyal3-sentry-0.4.3 test/sha_sentry_test.rb
loyal3-sentry-0.4.4 test/sha_sentry_test.rb
loyal3-sentry-0.5.0 test/sha_sentry_test.rb
loyal3-sentry-0.5.2 test/sha_sentry_test.rb
pivotal-sentry-0.4.0 test/sha_sentry_test.rb
shipstar-sentry-0.5.2.1 test/sha_sentry_test.rb
stderr-sentry-0.5.4 test/sha_sentry_test.rb
sentry-0.5.3 test/sha_sentry_test.rb