Skip to content

Commit

Permalink
chore(test): revert assertion change after logic update
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Sep 14, 2023
1 parent 1228dea commit 1c49e40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/lib/pact_broker/client/tasks/publication_task_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module PactBroker::Client

context "when pacts are succesfully published" do
it "invokes PublishPacts with the default values" do
expect(PactBroker::Client::PublishPacts).to receive(:new).with('http://pact-broker', pact_file_list, { number: '1.2.3', branch: "foo", tags: [], version_required: true}, {}, {}).and_return(publish_pacts)
expect(PactBroker::Client::PublishPacts).to receive(:new).with('http://pact-broker', pact_file_list, { number: '1.2.3', branch: "foo", tags: [], version_required: false}, {}, {}).and_return(publish_pacts)
expect(publish_pacts).to receive(:call).and_return(result)
Rake::Task['pact:publish'].execute
end
Expand All @@ -58,7 +58,7 @@ module PactBroker::Client
end

it "invokes PublishPacts with the write method set" do
expect(PactBroker::Client::PublishPacts).to receive(:new).with('http://pact-broker', pact_file_list, { number: "1.2.3", branch: "foo", tags: [], version_required: true }, {}, {write: :merge}).and_return(publish_pacts)
expect(PactBroker::Client::PublishPacts).to receive(:new).with('http://pact-broker', pact_file_list, { number: "1.2.3", branch: "foo", tags: [], version_required: false }, {}, {write: :merge}).and_return(publish_pacts)
expect(publish_pacts).to receive(:call).and_return(result)
Rake::Task['pact:publish:merge'].execute
end
Expand Down Expand Up @@ -185,7 +185,7 @@ module PactBroker::Client
expect(PactBroker::Client::PublishPacts).to receive(:new).with(
@pact_broker_base_url,
pact_file_list,
{ number: "1.2.3", tags: [@tag], branch: "foo", version_required: true},
{ number: "1.2.3", tags: [@tag], branch: "foo", version_required: false},
{},
{ basic_auth: @pact_broker_basic_auth, token: @pact_broker_token }
)
Expand Down

0 comments on commit 1c49e40

Please sign in to comment.