Sha256: 2beeded4dedce0dac0d6f8b1df2cec573ad273bad84f9e7f14634bc755e57a92
Contents?: true
Size: 746 Bytes
Versions: 75
Compression:
Stored size: 746 Bytes
Contents
# frozen_string_literal: true require 'aranha/parsers/source_address/http_get' RSpec.describe ::Aranha::Parsers::SourceAddress::HttpGet do SOURCE_URI = 'http://example.net/abc' # rubocop:disable RSpec/LeakyConstantDeclaration describe '#location_uri' do [ { location: 'http://example.net/def', expected: 'http://example.net/def' }, { location: '/def', expected: 'http://example.net/def' } ].each do |stub| context "when source_uri is \"#{SOURCE_URI}\" and location is \"#{stub.fetch(:location)}\"" do it "return #{stub.fetch(:expected)}" do expect(described_class.location_uri(SOURCE_URI, stub.fetch(:location))) .to eq(stub.fetch(:expected)) end end end end end
Version data entries
75 entries across 75 versions & 2 rubygems