1
0
Fork 0
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:
Thomas Walpole 2014-06-30 17:21:39 -07:00
commit e48d6a9592

View file

@ -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)