Skip to content

Commit

Permalink
style: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Sep 6, 2023
1 parent a81931b commit 93bab7d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions spec/lib/pactflow/client/provider_contracts/publish_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,22 @@ module ProviderContracts
end

let!(:index_request) do
stub_request(:get, "http://pactflow").to_return(status: index_status, body: index_body_hash.to_json, headers: { "Content-Type" => "application/hal+json" } )
stub_request(:get, "http://pactflow")
.to_return(
status: index_status,
body: index_body_hash.to_json,
headers: { "Content-Type" => "application/hal+json" }
)
end
let(:index_status) { 200 }

let!(:publish_request) do
stub_request(:post, "http://pactflow/some-publish/Bar").to_return(status: publish_status, body: post_response_body.to_json, headers: { "Content-Type" => "application/hal+json" } )
stub_request(:post, "http://pactflow/some-publish/Bar")
.to_return(
status: publish_status,
body: post_response_body.to_json,
headers: { "Content-Type" => "application/hal+json" }
)
end
let(:publish_status) { 200 }

Expand Down Expand Up @@ -126,7 +136,6 @@ module ProviderContracts
expect(subject.success).to be false
expect(subject.message).to match(/some.*error/)
end

end

context "when there is an error response from publishing" do
Expand Down

0 comments on commit 93bab7d

Please sign in to comment.