mirror of https://github.com/rails/rails
Do not use the same tests description
This commit is contained in:
parent
d4c94accf7
commit
6c0013f7cd
|
@ -111,21 +111,21 @@ class HttpTokenAuthenticationTest < ActionController::TestCase
|
||||||
assert_equal(expected, actual)
|
assert_equal(expected, actual)
|
||||||
end
|
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'
|
token = 'rcHu+=HzSFw89Ypyhn/896A==f34'
|
||||||
actual = ActionController::HttpAuthentication::Token.token_and_options(sample_request(token)).first
|
actual = ActionController::HttpAuthentication::Token.token_and_options(sample_request(token)).first
|
||||||
expected = token
|
expected = token
|
||||||
assert_equal(expected, actual)
|
assert_equal(expected, actual)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "token_and_options returns correct token" do
|
test "token_and_options returns correct token with slashes" do
|
||||||
token = 'rcHu+\\\\"/896A'
|
token = 'rcHu+\\\\"/896A'
|
||||||
actual = ActionController::HttpAuthentication::Token.token_and_options(sample_request(token)).first
|
actual = ActionController::HttpAuthentication::Token.token_and_options(sample_request(token)).first
|
||||||
expected = token
|
expected = token
|
||||||
assert_equal(expected, actual)
|
assert_equal(expected, actual)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "token_and_options returns correct token" do
|
test "token_and_options returns correct token with quotes" do
|
||||||
token = '\"quote\" pretty'
|
token = '\"quote\" pretty'
|
||||||
actual = ActionController::HttpAuthentication::Token.token_and_options(sample_request(token)).first
|
actual = ActionController::HttpAuthentication::Token.token_and_options(sample_request(token)).first
|
||||||
expected = token
|
expected = token
|
||||||
|
|
Loading…
Reference in New Issue