Sha256: cc667d96a97b25eb3248666b3356a84d1ef432edf5d633945ebe8ca1787964d3

Contents?: true

Size: 823 Bytes

Versions: 56

Compression:

Stored size: 823 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

      tests('Excon.delete').returns('DELETE') do
        Excon.delete('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

      tests('connection.delete').returns('DELETE') do
        connection.delete.body
      end

    end

  end

end

Version data entries

56 entries across 56 versions & 3 rubygems

Version Path
excon-0.25.3 tests/request_method_tests.rb
excon-0.25.2 tests/request_method_tests.rb
excon-0.25.1 tests/request_method_tests.rb
excon-0.25.0 tests/request_method_tests.rb
excon-0.24.0 tests/request_method_tests.rb
excon-0.23.0 tests/request_method_tests.rb
excon-0.22.1 tests/request_method_tests.rb
excon-0.22.0 tests/request_method_tests.rb
vagrant-shell-0.2.6 vendor/bundle/gems/excon-0.20.1/tests/request_method_tests.rb
vagrant-shell-0.2.5 vendor/bundle/gems/excon-0.20.1/tests/request_method_tests.rb
excon-0.21.0 tests/request_method_tests.rb
excon-0.20.1 tests/request_method_tests.rb
excon-0.20.0 tests/request_method_tests.rb
excon-0.19.5 tests/request_method_tests.rb
excon-0.19.4 tests/request_method_tests.rb
excon-0.19.3 tests/request_method_tests.rb
excon-0.19.2 tests/request_method_tests.rb
excon-0.19.1 tests/request_method_tests.rb
excon-0.19.0 tests/request_method_tests.rb
excon-0.18.5 tests/request_method_tests.rb