Sha256: 541c9937a2c109b2c414477768e8979df8bf558d2c820f3ddd0efbcdfe4934c1

Contents?: true

Size: 468 Bytes

Versions: 8

Compression:

Stored size: 468 Bytes

Contents

require "spec_helper"

describe FastshopCatalog::ProductService do

  let(:contract_number) do
    "1234567890"
  end

  let(:sku) do
    "A5IMT237"
  end

  describe "search integration", :integration => true do

    it "should return the product for the contract number and sku" do
      service = FastshopCatalog::ProductService.new
      result = service.search(contract_number, sku)
      expect(result['ProdutoSkus'].first['Sku']).to eq(sku)
    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

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