Sha256: 9c2deca0e26f80b9dfccde454b80fe474d705eb65481282b89805271b6a805e7
Contents?: true
Size: 546 Bytes
Versions: 6809
Compression:
Stored size: 546 Bytes
Contents
require 'spec_helper' describe Typhoeus::Request::Actions do [:get, :post, :put, :delete, :head, :patch, :options].each do |name| describe ".#{name}" do let(:response) { Typhoeus::Request.method(name).call("http://localhost:3001") } it "returns ok" do expect(response.return_code).to eq(:ok) end unless name == :head it "makes #{name.to_s.upcase} Request" do expect(response.response_body).to include("\"REQUEST_METHOD\":\"#{name.to_s.upcase}\"") end end end end end
Version data entries
6,809 entries across 6,806 versions & 27 rubygems