Sha256: b01fc1f774e58b7fb5885890730bf9db498d2e211ed0adf27b48f0008f1f9209
Contents?: true
Size: 801 Bytes
Versions: 2
Compression:
Stored size: 801 Bytes
Contents
require "spec_helper" describe FastshopCatalog::OrderPlacementService do let(:contract_number) do "1234567890" end let(:participant) do ParticipantFactory.build end let(:service) do service = FastshopCatalog::ParticipantService.new end describe "insert integration", :integration => true do it "should insert the participant and return a null token" do result = service.insert(participant) expect(result).to be_nil end it "should raise incompatible address exception" do participant.address.neighborhood = 'Moema' expect{service.insert(participant)}.to raise_error(FastshopCatalog::ServiceException) do |e| expect(e.code).to eq(2) expect(e.description).to eq('Contrato invalido') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems