mhennemeyer-matchy 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/matchy.rb +3 -1
  2. data/matchy.gemspec +1 -1
  3. metadata +1 -1
data/lib/matchy.rb CHANGED
@@ -11,11 +11,13 @@ module Matchy
11
11
  # Rails for example defines MiniTest, so only check for
12
12
  # defined?(MiniTest) would be malicious
13
13
  defined?(MiniTest) && defined?(MiniTest::Assertions) &&
14
- (!defined?(Test::Unit::TestCase) || !(Test::Unit::TestCase < MiniTest::Assertions))
14
+ (!defined?(Test::Unit::TestCase) || (Test::Unit::TestCase < MiniTest::Assertions))
15
15
  end
16
+
16
17
  def self.assertions_module
17
18
  minitest? ? MiniTest::Assertions : Test::Unit::Assertions
18
19
  end
20
+
19
21
  def self.test_case_class
20
22
  minitest? ? MiniTest::Unit::TestCase : Test::Unit::TestCase
21
23
  end
data/matchy.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "matchy"
3
- s.version = "0.3.1"
3
+ s.version = "0.3.2"
4
4
  s.date = "2009-02-08"
5
5
  s.summary = "RSpec-esque matchers for use in Test::Unit"
6
6
  s.email = "mhennemeyer@gmail.com"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mhennemeyer-matchy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy McAnally