Sha256: 662e5d1cb502b6e8cd461e27798ccd66cc070115c41910de4a201c253100e59b

Contents?: true

Size: 398 Bytes

Versions: 8

Compression:

Stored size: 398 Bytes

Contents

require "spec_helper"

describe FastshopCatalog::ExternalDneService do

  describe "query integration", :integration => true do
    it "should return the address information for the contract number and zip_code" do
      service = FastshopCatalog::ExternalDneService.new
        result = service.query('1234567890', '04562030')
        expect(result['Cidade']).to eq('SAO PAULO')
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fastshop_catalog-0.0.8 spec/fastshop_catalog/integration/external_dne_service_integration_spec.rb
fastshop_catalog-0.0.7 spec/fastshop_catalog/integration/external_dne_service_integration_spec.rb
fastshop_catalog-0.0.6 spec/fastshop_catalog/integration/external_dne_service_integration_spec.rb
fastshop_catalog-0.0.5 spec/fastshop_catalog/integration/external_dne_service_integration_spec.rb
fastshop_catalog-0.0.4 spec/fastshop_catalog/integration/external_dne_service_integration_spec.rb
fastshop_catalog-0.0.3 spec/fastshop_catalog/integration/external_dne_service_integration_spec.rb
fastshop_catalog-0.0.2 spec/fastshop_catalog/integration/external_dne_service_integration_spec.rb
fastshop_catalog-0.0.1 spec/fastshop_catalog/integration/external_dne_service_integration_spec.rb