Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed duplicate (overriding) test and an extraneous comment

  • Loading branch information...
commit ab3545822af5ee586ca6f269c3a4d8817d0ff65c 1 parent 53cb37e
@ecavazos ecavazos authored
View
1  test/test_action_controller_request_proxy.rb
@@ -1,4 +1,3 @@
-#gem 'actionpack', '2.2.3'
gem 'actionpack', '2.3.8'
require File.expand_path('../test_helper', __FILE__)
View
13 test/test_net_http_client.rb
@@ -23,20 +23,7 @@ def test_that_using_auth_headers_on_get_requests_works
assert_equal auth_intro, 'OAuth'
assert_matching_headers correct_sorted_params, request['authorization']
end
-
- def test_that_using_auth_headers_on_get_requests_works_with_plaintext
- require 'oauth/signature/plaintext'
- c = OAuth::Consumer.new('consumer_key_86cad9', '5888bf0345e5d237',{
- :signature_method => 'PLAINTEXT'
- })
- request = Net::HTTP::Get.new(@request_uri.path + "?" + request_parameters_to_s)
- request.oauth!(@http, c, @token, {:nonce => @nonce, :timestamp => @timestamp, :signature_method => 'PLAINTEXT'})
- assert_equal 'GET', request.method
- assert_equal '/test?key=value', request.path
- assert_matching_headers "oauth_nonce=\"225579211881198842005988698334675835446\", oauth_signature_method=\"PLAINTEXT\", oauth_token=\"token_411a7f\", oauth_timestamp=\"1199645624\", oauth_consumer_key=\"consumer_key_86cad9\", oauth_signature=\"1oO2izFav1GP4kEH2EskwXkCRFg%3D\", oauth_version=\"1.0\"", request['authorization']
- end
-
def test_that_using_auth_headers_on_get_requests_works_with_plaintext
require 'oauth/signature/plaintext'
c = OAuth::Consumer.new('consumer_key_86cad9', '5888bf0345e5d237',{
Please sign in to comment.
Something went wrong with that request. Please try again.