Sha256: 848c04cd082bab5cab57841e0d23d8921433a5812ecd9c127a9c87aabdf2f260

Contents?: true

Size: 662 Bytes

Versions: 8

Compression:

Stored size: 662 Bytes

Contents

Shindo.tests('Excon request methods') do

  with_rackup('request_methods.ru') do

    tests 'one-offs' do
      
      tests('Excon.get').returns('GET') do
        Excon.get('http://127.0.0.1:9292').body
      end
      
      tests('Excon.post').returns('POST') do
        Excon.post('http://127.0.0.1:9292').body
      end
      
    end
    
    tests 'with a connection object' do
      
      connection = Excon.new('http://127.0.0.1:9292')
      
      tests('connection.get').returns('GET') do
        connection.get.body
      end
      
      tests('connection.post').returns('POST') do
        connection.post.body
      end
      
    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
excon-0.7.6 tests/request_method_tests.rb
excon-0.7.5 tests/request_method_tests.rb
excon-0.7.4 tests/request_method_tests.rb
excon-0.7.3 tests/request_method_tests.rb
excon-0.7.2 tests/request_method_tests.rb
excon-0.7.1 tests/request_method_tests.rb
excon-0.7.0 tests/request_method_tests.rb
excon-0.6.6 tests/request_method_tests.rb