aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-12-28 16:39:29 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-12-31 13:57:24 -0300
commit6c0013f7cda487de101d47376b9f1355ff1ef095 (patch)
tree1673826872fb592974bdf701623b8aa43bbb206b /actionpack
parentd4c94accf7efb1136b9764cd00e19f3d90dc047d (diff)
downloadrails-6c0013f7cda487de101d47376b9f1355ff1ef095.tar.gz
rails-6c0013f7cda487de101d47376b9f1355ff1ef095.tar.bz2
rails-6c0013f7cda487de101d47376b9f1355ff1ef095.zip
Do not use the same tests description
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/controller/http_token_authentication_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/http_token_authentication_test.rb b/actionpack/test/controller/http_token_authentication_test.rb
index faf923e929..ebf6d224aa 100644
--- a/actionpack/test/controller/http_token_authentication_test.rb
+++ b/actionpack/test/controller/http_token_authentication_test.rb
@@ -111,21 +111,21 @@ class HttpTokenAuthenticationTest < ActionController::TestCase
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