From bd88f52b03c2b8061aa753b7d925dd9bc4057e6e Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 26 Jun 2012 23:02:51 +0200 Subject: first steps towards adding a server side srp flow to the example --- test/auth_test.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/auth_test.rb b/test/auth_test.rb index e6c4017..0f76404 100644 --- a/test/auth_test.rb +++ b/test/auth_test.rb @@ -10,15 +10,19 @@ class AuthTest < Test::Unit::TestCase end def test_successful_auth + print "salt: " + puts @client.salt + print "verifier: " + puts @client.verifier assert @client.authenticate(@server, @username, @password) end def test_wrong_password - assert !@client.authenticate(@server, @username, "password") + assert !@client.authenticate(@server, @username, "wrong password") end def test_wrong_username - assert !@client.authenticate(@server, "username", @password) + assert !@client.authenticate(@server, "wrong username", @password) end end -- cgit v1.2.3