Skip to content

Commit

Permalink
Merge pull request #133 from netMedi/master
Browse files Browse the repository at this point in the history
include minitest plugin for Minitest::Test class
  • Loading branch information
mattheworiordan committed Jul 26, 2015
2 parents 346a045 + aeb87df commit 468cb2e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions lib/capybara-screenshot/minitest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ def after_teardown
end
end

class MiniTest::Unit::TestCase
include Capybara::Screenshot::MiniTestPlugin
begin
Minitest.const_get('Test')
class Minitest::Test
include Capybara::Screenshot::MiniTestPlugin
end
rescue NameError => e
class MiniTest::Unit::TestCase
include Capybara::Screenshot::MiniTestPlugin
end
end


0 comments on commit 468cb2e

Please sign in to comment.