Browse files

Added a test for cnonce uniqueness

  • Loading branch information...
1 parent 62385e6 commit 87d6c7fc7976d7d41975a85368ad24b8ad5a3e48 @drbrain committed May 18, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/test_net_http_digest_auth.rb
View
4 test/test_net_http_digest_auth.rb
@@ -103,7 +103,9 @@ def test_auth_header_unknown_algorithm
end
def test_make_cnonce
- assert_match %r%\A[a-f\d]{32}\z%, @da.make_cnonce
+ cnonce = @da.make_cnonce
+ assert_match %r%\A[a-f\d]{32}\z%, cnonce
+ refute_equal cnonce, @da.make_cnonce
end
def test_next_nonce

0 comments on commit 87d6c7f

Please sign in to comment.