Skip to content

Commit

Permalink
Fix save_and_open_screenshot for 3rd drivers
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sobrinho committed Jun 29, 2014
1 parent 86584c0 commit 1013f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capybara/spec/session/save_and_open_screenshot_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1013f83

Please sign in to comment.