Permalink
Browse files

Do not use the same tests description

  • Loading branch information...
1 parent d4c94ac commit 6c0013f7cda487de101d47376b9f1355ff1ef095 @rafaelfranca rafaelfranca committed Dec 28, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/test/controller/http_token_authentication_test.rb
View
6 actionpack/test/controller/http_token_authentication_test.rb
@@ -111,21 +111,21 @@ def authenticate_long_credentials
assert_equal(expected, actual)
end
- test "token_and_options returns correct token" do
+ test "token_and_options returns correct token with value after the equal sign" do
token = 'rcHu+=HzSFw89Ypyhn/896A==f34'
actual = ActionController::HttpAuthentication::Token.token_and_options(sample_request(token)).first
expected = token
assert_equal(expected, actual)
end
- test "token_and_options returns correct token" do
+ test "token_and_options returns correct token with slashes" do
token = 'rcHu+\\\\"/896A'
actual = ActionController::HttpAuthentication::Token.token_and_options(sample_request(token)).first
expected = token
assert_equal(expected, actual)
end
- test "token_and_options returns correct token" do
+ test "token_and_options returns correct token with quotes" do
token = '\"quote\" pretty'
actual = ActionController::HttpAuthentication::Token.token_and_options(sample_request(token)).first
expected = token

0 comments on commit 6c0013f

Please sign in to comment.