twitter-status-bot/.gems/gems/http-0.6.2/spec/http/options/form_spec.rb

18 lines
329 B
Ruby
Raw Normal View History

2014-09-03 08:49:59 +00:00
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