Sha256: 6a3a9e98c3c45f5f7229298827733d0ca2acf4e08f2f8602969d69918b6fd50b
Contents?: true
Size: 588 Bytes
Versions: 3
Compression:
Stored size: 588 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>") web_service.request!.should == "<xml><fake></fake>" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
correios-frete-1.9.0 | spec/correios/frete/web_service_spec.rb |
correios-frete-1.8.0 | spec/correios/frete/web_service_spec.rb |
correios-frete-1.7.0 | spec/correios/frete/web_service_spec.rb |