mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Merge pull request #1347 from sobrinho/master
Fix save_and_open_screenshot for 3rd drivers
This commit is contained in:
commit
e48d6a9592
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ Capybara::SpecHelper.spec '#save_and_open_screenshot' do
|
|||
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue