Sha256: c0e7da5ebab475c13887aa5f945cb78ce7bf31920c03f40fa003b84ba75962a8
Contents?: true
Size: 329 Bytes
Versions: 6
Compression:
Stored size: 329 Bytes
Contents
require 'spec_helper' describe HTTP::Options, 'form' do let(:opts) { HTTP::Options.new } it 'defaults to nil' do expect(opts.form).to be nil end it 'may be specified with with_form_data' do opts2 = opts.with_form(:foo => 42) expect(opts.form).to be nil expect(opts2.form).to eq(:foo => 42) end end
Version data entries
6 entries across 6 versions & 1 rubygems