Sha256: 56ecf85c7e602abb3a1e4ec99b9e335995cf3e0fec1d30c8d95c0bd2d9e0fa4b
Contents?: true
Size: 593 Bytes
Versions: 2
Compression:
Stored size: 593 Bytes
Contents
# encoding: UTF-8 require 'spec_helper' describe Correios::Frete::WebService do describe "#request" do around do |example| Correios::Frete.configure { |config| config.log_enabled = false } example.run Correios::Frete.configure { |config| config.log_enabled = true } end let(:frete) { Correios::Frete::Calculador.new } let(:web_service) { Correios::Frete::WebService.new(frete, [:pac, :sedex]) } it "returns XML response" do mock_request_for("<xml><fake></fake>") expect(web_service.request!).to eq("<xml><fake></fake>") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
correios-frete-1.9.2 | spec/correios/frete/web_service_spec.rb |
correios-frete-1.9.1 | spec/correios/frete/web_service_spec.rb |