test_declarative 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,10 +17,8 @@ module TestDeclarative
17
17
  end
18
18
  end
19
19
 
20
- class Module
21
- include TestDeclarative
22
- end
20
+ classes = [Module]
21
+ classes << Test::Unit::TestCase if defined?(Test::Unit::TestCase)
22
+ classes << MiniTest::Unit::TestCase if defined?(MiniTest::Unit::TestCase)
23
23
 
24
- class Test::Unit::TestCase
25
- include TestDeclarative
26
- end if defined?(Test::Unit::TestCase)
24
+ classes.each { |c| c.send(:include, TestDeclarative) }
@@ -1,3 +1,3 @@
1
1
  module TestDeclarative
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sven Fuchs
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-04 00:00:00 +02:00
17
+ date: 2010-04-05 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies: []
20
20