Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a test for cnonce uniqueness

  • Loading branch information...
commit 87d6c7fc7976d7d41975a85368ad24b8ad5a3e48 1 parent 62385e6
@drbrain authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.