Sha256: b314efa0104ec46ce33a48b0f7bf5e0528feac1d462d9b9d3b8516f5841d1a90

Contents?: true

Size: 399 Bytes

Versions: 49

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

describe LHC::Response do
  context 'effective_url' do
    let(:effective_url) { 'https://www.local.ch' }

    let(:raw_response) { OpenStruct.new(effective_url: effective_url) }

    it 'provides effective_url' do
      response = LHC::Response.new(raw_response, nil)
      expect(response.effective_url).to eq effective_url
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
lhc-15.2.1 spec/response/effective_url_spec.rb
lhc-15.2.0 spec/response/effective_url_spec.rb
lhc-15.1.3 spec/response/effective_url_spec.rb
lhc-15.1.2 spec/response/effective_url_spec.rb
lhc-15.1.1 spec/response/effective_url_spec.rb
lhc-15.1.0 spec/response/effective_url_spec.rb
lhc-16.0.0.pre.pro2162.2 spec/response/effective_url_spec.rb
lhc-16.0.0.pre.pro2162 spec/response/effective_url_spec.rb
lhc-15.0.1 spec/response/effective_url_spec.rb
lhc-15.0.0 spec/response/effective_url_spec.rb
lhc-14.0.0 spec/response/effective_url_spec.rb
lhc-13.4.0.pre.pro1766.1 spec/response/effective_url_spec.rb
lhc-13.2.0 spec/response/effective_url_spec.rb
lhc-13.1.0 spec/response/effective_url_spec.rb
lhc-13.0.0 spec/response/effective_url_spec.rb
lhc-12.3.0 spec/response/effective_url_spec.rb
lhc-12.2.1 spec/response/effective_url_spec.rb
lhc-12.2.0 spec/response/effective_url_spec.rb
lhc-12.1.3 spec/response/effective_url_spec.rb
lhc-12.1.2 spec/response/effective_url_spec.rb