Skip to content
This repository
Browse code

removed duplicate (overriding) test and an extraneous comment

  • Loading branch information...
commit ab3545822af5ee586ca6f269c3a4d8817d0ff65c 1 parent 53cb37e
Emilio Cavazos ecavazos authored
1  test/test_action_controller_request_proxy.rb
... ... @@ -1,4 +1,3 @@
1   -#gem 'actionpack', '2.2.3'
2 1 gem 'actionpack', '2.3.8'
3 2 require File.expand_path('../test_helper', __FILE__)
4 3
13 test/test_net_http_client.rb
@@ -23,20 +23,7 @@ def test_that_using_auth_headers_on_get_requests_works
23 23 assert_equal auth_intro, 'OAuth'
24 24 assert_matching_headers correct_sorted_params, request['authorization']
25 25 end
26   -
27   - def test_that_using_auth_headers_on_get_requests_works_with_plaintext
28   - require 'oauth/signature/plaintext'
29   - c = OAuth::Consumer.new('consumer_key_86cad9', '5888bf0345e5d237',{
30   - :signature_method => 'PLAINTEXT'
31   - })
32   - request = Net::HTTP::Get.new(@request_uri.path + "?" + request_parameters_to_s)
33   - request.oauth!(@http, c, @token, {:nonce => @nonce, :timestamp => @timestamp, :signature_method => 'PLAINTEXT'})
34 26
35   - assert_equal 'GET', request.method
36   - assert_equal '/test?key=value', request.path
37   - 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']
38   - end
39   -
40 27 def test_that_using_auth_headers_on_get_requests_works_with_plaintext
41 28 require 'oauth/signature/plaintext'
42 29 c = OAuth::Consumer.new('consumer_key_86cad9', '5888bf0345e5d237',{

0 comments on commit ab35458

Please sign in to comment.
Something went wrong with that request. Please try again.