Sha256: cfbbbefcfccfa46f179129bc7bca64ba99a835097593f678bcea077f2663fd2a
Contents?: true
Size: 796 Bytes
Versions: 7
Compression:
Stored size: 796 Bytes
Contents
require 'spec_helper' require 'pact_broker/api/decorators/relationships_csv_decorator' module PactBroker module Api module Decorators describe RelationshipsCsvDecorator do let(:pact) { TestDataBuilder.new.create_pact_with_hierarchy "My Consumer", "1.0", "My Provider"} let(:pacts) { [pact]} subject { RelationshipsCsvDecorator.new(pacts) } describe "#to_csv" do let(:line_1) { '1,My Consumer,1,3158419,0,1,2,0,0,0,0,0,0,0,0'} let(:line_2) { '2,My Provider,1,3158419,0,2,0,0,0,0,0,0,0,0,0' } let(:expected_text) { [line_1, line_2].join("\n") + "\n" } xit "returns the relationships as CSV" do expect(subject.to_csv).to eq expected_text end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems