spec/hmac_spec.rb in gibberish-1.0.0 vs spec/hmac_spec.rb in gibberish-1.0.1

- old
+ new

@@ -4,6 +4,12 @@ it "should hopefully work" do Gibberish::HMAC("password", "data").must_equal("08d13c72bed7ace5efadc09df109a78a5d713097") end + it "should work with OpenSSL HMAC" do + hmac = Gibberish::HMAC("password", "data\n") + o_hmac = `echo "data" | openssl dgst -sha1 -hmac 'password'` + hmac.must_equal(o_hmac.chomp) + end + end