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.
- data/lib/test_declarative.rb +4 -6
- data/lib/test_declarative/version.rb +1 -1
- metadata +3 -3
data/lib/test_declarative.rb
CHANGED
@@ -17,10 +17,8 @@ module TestDeclarative
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
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
|
-
|
25
|
-
include TestDeclarative
|
26
|
-
end if defined?(Test::Unit::TestCase)
|
24
|
+
classes.each { |c| c.send(:include, TestDeclarative) }
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
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-
|
17
|
+
date: 2010-04-05 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|