Sha256: 18813bfe7ee74f8856e6b5803731a6d694d0c1e8bda4adcae3fa17bd413fe34b
Contents?: true
Size: 477 Bytes
Versions: 6
Compression:
Stored size: 477 Bytes
Contents
# frozen_string_literal: true describe Correios::CEP::WebService do let(:cep) { '54250610' } describe '#request', vcr: { cassette_name: 'correios_consulta_cep_ok' } do around do |example| Correios::CEP.log_enabled = false example.run Correios::CEP.log_enabled = true end 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
6 entries across 6 versions & 1 rubygems