twitter-status-bot/.gems/gems/http-0.6.2/spec/http/options_spec.rb

15 lines
319 B
Ruby
Raw Normal View History

2014-09-03 08:49:59 +00:00
require 'spec_helper'
describe HTTP::Options do
subject { described_class.new(:response => :body) }
it 'behaves like a Hash for reading' do
expect(subject[:response]).to eq(:body)
expect(subject[:nosuchone]).to be nil
end
it 'coerces to a Hash' do
expect(subject.to_hash).to be_a(Hash)
end
end