Sha256: 8d721a375c80776c553127c6038e07c6254bb17798804b98896658022cb0f1c5

Contents?: true

Size: 567 Bytes

Versions: 9

Compression:

Stored size: 567 Bytes

Contents

require 'spec_helper'

describe VCR::ResponseStatus do
  describe '.from_net_http_response' do
    let(:response) { VCR::YAML.load_file("#{VCR::SPEC_ROOT}/fixtures/#{YAML_SERIALIZATION_VERSION}/example_net_http_response.yml") }
    subject { described_class.from_net_http_response(response) }

    it            { should be_instance_of(described_class) }
    its(:code)    { should == 200 }
    its(:message) { should == 'OK' }
  end

  it_performs 'status message normalization' do
    def instance(message)
      described_class.new(200, message)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
vcr-1.11.1 spec/vcr/structs/response_status_spec.rb
vcr-1.10.3 spec/vcr/structs/response_status_spec.rb
vcr-1.10.2 spec/vcr/structs/response_status_spec.rb
vcr-1.10.0 spec/vcr/structs/response_status_spec.rb
vcr-1.9.0 spec/vcr/structs/response_status_spec.rb
vcr-1.8.0 spec/vcr/structs/response_status_spec.rb
vcr-1.7.2 spec/vcr/structs/response_status_spec.rb
vcr-1.7.1 spec/vcr/structs/response_status_spec.rb
vcr-1.7.0 spec/vcr/structs/response_status_spec.rb