spec/lib/percy/capybara/client/snapshots_spec.rb in percy-capybara-3.1.2 vs spec/lib/percy/capybara/client/snapshots_spec.rb in percy-capybara-3.2.0

- old
+ new

@@ -45,11 +45,10 @@ before(:each) do setup_sprockets(capybara_client) visit '/' loader # Force evaluation now. - repo = Percy::Client::Environment.repo - stub_request(:post, "https://percy.io/api/v1/repos/#{repo}/builds/") + stub_request(:post, "https://percy.io/api/v1/builds/") .to_return(status: 201, body: mock_build_response.to_json) stub_request(:post, 'https://percy.io/api/v1/builds/123/snapshots/') .to_return(status: 201, body: mock_snapshot_response.to_json) stub_request(:post, 'https://percy.io/api/v1/builds/123/resources/') .with(body: /#{snapshot_resource_sha}/)