test/test_totp.rb in otp-0.0.2 vs test/test_totp.rb in otp-0.0.3
- old
+ new
@@ -2,10 +2,10 @@
require "otp"
class TestTOTP < Test::Unit::TestCase
def assert_totp(totp, time, pass)
totp.time = time
- assert_equal(totp.password, pass)
+ assert_equal(pass, totp.password)
assert(totp.verify(pass))
assert(!totp.verify(pass.chop))
end
def test_totp_sha1