Skip to content

Commit

Permalink
Added token test
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed May 30, 2024
1 parent a2c9497 commit 9c51301
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/token_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require_relative "test_helper"

class TokenTest < Minitest::Test
def test_secret_token
# ensure consistent across Rails releases
expected = "0baf04b17695d9934775733e6941fcc0f024c68ee98d539dc0c214823fa0e255708ac74a4957cb561ddd8a63af9a24e1d255259d95306734fb513e5e7cbb897d"
assert_equal expected, AhoyEmail.secret_token.first.unpack1("h*")
end
end

0 comments on commit 9c51301

Please sign in to comment.