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

18 lines
314 B
Ruby
Raw Normal View History

2014-09-03 08:49:59 +00:00
require 'spec_helper'
describe HTTP::Options, 'body' do
let(:opts) { HTTP::Options.new }
it 'defaults to nil' do
expect(opts.body).to be nil
end
it 'may be specified with with_body' do
opts2 = opts.with_body('foo')
expect(opts.body).to be nil
expect(opts2.body).to eq('foo')
end
end