Sha256: 324551603d9ee2a6ce6801984e607cd71616030f0ebf4e86ca117db230a077e8

Contents?: true

Size: 293 Bytes

Versions: 1

Compression:

Stored size: 293 Bytes

Contents

require 'helper'

class TestSalty < Test::Unit::TestCase
  context "test salt" do
    setup do
      @salt = generate_salt
    end

    should "hash the same string and ensure the hash is the same" do
      assert_equal salted_hash("bobby",@salt), salted_hash("bobby",@salt)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
salty-0.0.2 test/test_salty.rb