Sha256: 9a10084bc4bf06ed5c0c21ec8a421b60fec12ac6a7585314958c310ffd4accaa
Contents?: true
Size: 302 Bytes
Versions: 4
Compression:
Stored size: 302 Bytes
Contents
RSpec.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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
http-0.7.4 | spec/lib/http/options_spec.rb |
http-0.7.3 | spec/lib/http/options_spec.rb |
http-0.7.2 | spec/lib/http/options_spec.rb |
http-0.7.1 | spec/lib/http/options_spec.rb |