Sha256: 645ddfce1784ffc98b782474a071e6e75802a19169f189f385df43adae613432
Contents?: true
Size: 513 Bytes
Versions: 3
Compression:
Stored size: 513 Bytes
Contents
require 'spec_helper' describe HTTP::Options, "response" do let(:opts){ HTTP::Options.new } it 'defaults to :auto' do expect(opts.response).to eq(:auto) end it 'may be specified with with_response' do opts2 = opts.with_response(:body) expect(opts.response).to eq(:auto) expect(opts2.response).to eq(:body) end it 'recognizes invalid responses' do expect { opts.with_response(:not_a_valid_response) }.to raise_error(ArgumentError, /not_a_valid_response/) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
http-0.5.1 | spec/http/options/response_spec.rb |
http-0.5.0 | spec/http/options/response_spec.rb |
http-0.5.0.pre2 | spec/http/options/response_spec.rb |