Sha256: 4945c4dd0cac98119e199e5f50f7140deb5ca830cbd7933d2c12b9a753a78a79

Contents?: true

Size: 347 Bytes

Versions: 3

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true
describe Correios::CEP::WebService do
  let(:cep) { '54250610' }

  describe '#request', vcr: { cassette_name: 'correios_consulta_cep_ok' } do
    it 'returns HTTP response body from Correios web service' do
      result = subject.request(cep)
      expect(result).to include('Rua Fernando Amorim')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
correios-cep-0.8.0 spec/correios/cep/web_service_spec.rb
correios-cep-0.7.1 spec/correios/cep/web_service_spec.rb
correios-cep-0.7.0 spec/correios/cep/web_service_spec.rb