Sha256: c66ef81130ae667aa0acfc365afd4c33411aed51c4b2d3de0e832d48facfdf4f

Contents?: true

Size: 616 Bytes

Versions: 12

Compression:

Stored size: 616 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://localhost:9292').body
      end

      tests('Excon.post').returns('POST') do
        Excon.post('http://localhost:9292').body
      end

    end

    tests 'with a connection object' do

      connection = Excon.new('http://localhost: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

12 entries across 12 versions & 1 rubygems

Version Path
excon-0.9.6 tests/request_method_tests.rb
excon-0.9.5 tests/request_method_tests.rb
excon-0.9.4 tests/request_method_tests.rb
excon-0.9.3 tests/request_method_tests.rb
excon-0.9.2 tests/request_method_tests.rb
excon-0.9.1 tests/request_method_tests.rb
excon-0.9.0 tests/request_method_tests.rb
excon-0.8.0 tests/request_method_tests.rb
excon-0.7.12 tests/request_method_tests.rb
excon-0.7.11 tests/request_method_tests.rb
excon-0.7.10 tests/request_method_tests.rb
excon-0.7.9 tests/request_method_tests.rb