Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't output screenshot paths if they aren't saved #128

Merged
merged 1 commit into from
Mar 29, 2016

Conversation

mlarraz
Copy link
Contributor

@mlarraz mlarraz commented May 20, 2015

Right now Saver#save returns nil and does nothing if the browser hasn't loaded any URL, but will still output paths to files that do not exist:

https://github.com/mattheworiordan/capybara-screenshot/blob/master/lib/capybara-screenshot/saver.rb#L22-L23

This at least stops tricking users into thinking screenshots are being taken when they aren't.

@mattheworiordan mattheworiordan merged commit c910f3a into mattheworiordan:master Mar 29, 2016
@mattheworiordan
Copy link
Owner

Thanks @mlarraz

@mlarraz mlarraz deleted the patch-1 branch March 29, 2016 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants