mhennemeyer-matchy 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +1 -0
- data/lib/matchy.rb +3 -3
- data/matchy.gemspec +1 -1
- data/test/test_minitest_compatibility.rb +1 -0
- metadata +1 -1
data/History.txt
CHANGED
data/lib/matchy.rb
CHANGED
@@ -8,10 +8,10 @@ module Matchy
|
|
8
8
|
# This needs to be better.
|
9
9
|
# How can we decide if we really have a
|
10
10
|
# suite of MiniTest Tests?
|
11
|
-
# Rails for example defines MiniTest, so only check for
|
11
|
+
# Rails for example defines MiniTest, so to only check for
|
12
12
|
# defined?(MiniTest) would be malicious
|
13
|
-
defined?(MiniTest) && defined?(MiniTest::Assertions) &&
|
14
|
-
|
13
|
+
defined?(FORCE_MINITEST) || defined?(MiniTest) && defined?(MiniTest::Assertions) &&
|
14
|
+
(!defined?(Test::Unit::TestCase) || (Test::Unit::TestCase < MiniTest::Assertions))
|
15
15
|
end
|
16
16
|
|
17
17
|
def self.assertions_module
|
data/matchy.gemspec
CHANGED