Sha256: 86a3073c6531b61074736fcac76feaafc893daf5f9f80fea714e60fe6947a68f

Contents?: true

Size: 260 Bytes

Versions: 14

Compression:

Stored size: 260 Bytes

Contents

RSpec.describe HTTP::Options do
  subject { described_class.new(:response => :body) }

  it "has reader methods for attributes" do
    expect(subject.response).to eq(:body)
  end

  it "coerces to a Hash" do
    expect(subject.to_hash).to be_a(Hash)
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
http-2.0.1 spec/lib/http/options_spec.rb
http-2.0.0 spec/lib/http/options_spec.rb
http-2.0.0.pre spec/lib/http/options_spec.rb
http-1.0.4 spec/lib/http/options_spec.rb
http-1.0.3 spec/lib/http/options_spec.rb
http-1.0.2 spec/lib/http/options_spec.rb
http-1.0.1 spec/lib/http/options_spec.rb
http-1.0.0 spec/lib/http/options_spec.rb
http-1.0.0.pre6 spec/lib/http/options_spec.rb
http-1.0.0.pre5 spec/lib/http/options_spec.rb
http-1.0.0.pre4 spec/lib/http/options_spec.rb
http-1.0.0.pre3 spec/lib/http/options_spec.rb
http-1.0.0.pre2 spec/lib/http/options_spec.rb
http-1.0.0.pre1 spec/lib/http/options_spec.rb