Sha256: 0f9f6e99540bbf64ceaf25f0eb7e4842670fe21a3b8c27aea3a38867e33d5c0c

Contents?: true

Size: 483 Bytes

Versions: 4

Compression:

Stored size: 483 Bytes

Contents

require 'helper'

class TestJohnHancock < Test::Unit::TestCase


  should "sign hash" do
    assert "2a9807b64b8068a8a2a665521ad9aeae", hash.sign
  end

  should "sign hash with shared secret" do
  	assert "d7321e9c8f961deb9e114dd476e420a0", hash.sign("ipsec")
  end

  should "sign hash with shared secret and ignore fields" do
  	assert "b2d1e2808552c9d421b2b6f617c71012", hash.sign("ipsec", ["test"])
  end

  private 

  def hash
  	{"foo" => "bar", "test" => "toon"}
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
john-hancock-0.1.3 test/test_john-hancock.rb
john-hancock-0.1.2 test/test_john-hancock.rb
john-hancock-0.1.1 test/test_john-hancock.rb
john-hancock-0.1.0 test/test_john-hancock.rb