Skip to content

Commit

Permalink
removed duplicate (overriding) test and an extraneous comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ecavazos authored and quirkey committed Aug 11, 2010
1 parent f4d0b62 commit 66ae007
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion test/test_action_controller_request_proxy.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#gem 'actionpack', '2.2.3'
gem 'actionpack', '2.3.8'
require File.expand_path('../test_helper', __FILE__)

Expand Down
13 changes: 0 additions & 13 deletions test/test_net_http_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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',{
Expand Down

0 comments on commit 66ae007

Please sign in to comment.