Skip to content

Commit

Permalink
Merge pull request #69 from psyho/properly_namespace_minitest
Browse files Browse the repository at this point in the history
Properly namespace ::Minitest (to not clash with Bogus::Minitest)
  • Loading branch information
psyho committed Jul 21, 2015
2 parents 5c1742c + 97a3d11 commit 60c55e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/bogus/minitest.rb
Expand Up @@ -38,8 +38,8 @@ def after_teardown
end

# minitest 5 vs 4.7
if defined? Minitest::Test
class Minitest::Test
if defined? ::Minitest::Test
class ::Minitest::Test
include Bogus::Minitest
end
else
Expand Down
4 changes: 2 additions & 2 deletions lib/bogus/minitest/syntax.rb
Expand Up @@ -17,8 +17,8 @@ def described_class=(value)

def after_suite(&block)
# minitest 5 vs 4.7
if defined? Minitest.after_run
Minitest.after_run(&block)
if defined? ::Minitest.after_run
::Minitest.after_run(&block)
else
MiniTest::Unit.after_tests(&block)
end
Expand Down

0 comments on commit 60c55e8

Please sign in to comment.