Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix save_and_open_screenshot for 3rd drivers #1347

Merged
merged 1 commit into from

2 participants

@sobrinho

The screenshot path will not start with capybara/ for 3rd drivers like
poltergeist since they aren't on capybara itself.

See https://travis-ci.org/teampoltergeist/poltergeist/jobs/28737963#L534

@sobrinho sobrinho Fix save_and_open_screenshot for 3rd drivers
The screenshot path will not start with `capybara/` for 3rd drivers like
poltergeist since they aren't on capybara itself.

See https://travis-ci.org/teampoltergeist/poltergeist/jobs/28737963#L534
1013f83
@twalpole twalpole merged commit e48d6a9 into jnicklas:master
@twalpole
Collaborator

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 29, 2014
  1. @sobrinho

    Fix save_and_open_screenshot for 3rd drivers

    sobrinho authored
    The screenshot path will not start with `capybara/` for 3rd drivers like
    poltergeist since they aren't on capybara itself.
    
    See https://travis-ci.org/teampoltergeist/poltergeist/jobs/28737963#L534
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/capybara/spec/session/save_and_open_screenshot_spec.rb
View
2  lib/capybara/spec/session/save_and_open_screenshot_spec.rb
@@ -6,7 +6,7 @@
end
it 'opens file from the default directory', :requires => [:screenshot] do
- expected_file_regex = %r{capybara/capybara-\d+\.png}
+ expected_file_regex = %r{capybara-\d+\.png}
allow(@session.driver).to receive(:save_screenshot)
allow(Launchy).to receive(:open)
Something went wrong with that request. Please try again.