test/test_hotp.rb in otp-0.0.2 vs test/test_hotp.rb in otp-0.0.3
- old
+ new
@@ -2,10 +2,10 @@
require "otp"
class TestHTOP < Test::Unit::TestCase
def assert_hotp(hotp, count, pass)
hotp.count = count
- assert_equal(hotp.password, pass)
+ assert_equal(pass, hotp.password)
assert(hotp.verify(pass))
assert(!hotp.verify(pass.chop))
end
def test_hotp