From 9c51301b2a54eabb80f152fcd27054c6615e3b1c Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 30 May 2024 14:29:48 -0700 Subject: [PATCH] Added token test --- test/token_test.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/token_test.rb diff --git a/test/token_test.rb b/test/token_test.rb new file mode 100644 index 0000000..8e8ed30 --- /dev/null +++ b/test/token_test.rb @@ -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