Skip to content

Commit

Permalink
Merge pull request mattheworiordan#131 from matt-riemer/skipped-tests
Browse files Browse the repository at this point in the history
Skip screenshot on skipped tests
  • Loading branch information
mattheworiordan committed Mar 29, 2016
2 parents e50dcdf + 4c3e048 commit 963b7a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capybara-screenshot/minitest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def before_setup
def after_teardown
super
if self.class.ancestors.map(&:to_s).include?('ActionDispatch::IntegrationTest')
if Capybara::Screenshot.autosave_on_failure && !passed?
if Capybara::Screenshot.autosave_on_failure && !passed? && !skipped?
Capybara.using_session(Capybara::Screenshot.final_session_name) do
filename_prefix = Capybara::Screenshot.filename_prefix_for(:minitest, self)

Expand Down

0 comments on commit 963b7a0

Please sign in to comment.