Sha256: 411c98913ecd8b95280147358a4ceac1cebd58419447cfbdf07245fc169ff4c6

Contents?: true

Size: 290 Bytes

Versions: 6

Compression:

Stored size: 290 Bytes

Contents

# frozen_string_literal: true
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

6 entries across 6 versions & 1 rubygems

Version Path
http-2.2.2 spec/lib/http/options_spec.rb
http-2.2.1 spec/lib/http/options_spec.rb
http-2.2.0 spec/lib/http/options_spec.rb
http-2.1.0 spec/lib/http/options_spec.rb
http-2.0.3 spec/lib/http/options_spec.rb
http-2.0.2 spec/lib/http/options_spec.rb