percy / percy-capybara

Visual testing for Capybara with Percy.
https://docs.percy.io/docs/capybara
MIT License
45 stars 23 forks source link

Make specs pass on forked repos #11

Closed mfazekas closed 8 years ago

mfazekas commented 8 years ago

When running specs from my forked repo (mfazekas/percy-capybara) i get error like this:

  7) Percy::Capybara::Client::Builds#initialize_build initializes and returns a build
     Failure/Error: @current_build = client.create_build(client.config.repo, options)

     WebMock::NetConnectNotAllowedError:
       Real HTTP connections are disabled. Unregistered request: POST https://percy.io/api/v1/repos/mfazekas/percy-capybara/builds/ with body '{"data":{"type":"builds","attributes":{"branch":"master","target-branch":null,"commit-sha":"06f42b96337e8f9d9b97427a919969a835e4e750","commit-committed-at":"2016-10-12 11:12:58 -0700","commit-author-

The patch replaces https://percy.io/api/v1/repos/percy/percy-capybara/builds/ with https://percy.io/api/v1/repos/#{Percy::Client::Environment.repo}/builds/

fotinakis commented 8 years ago

LGTM 👍