etest-unit 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module EtestUnit
2
- VERSION = "0.7.3"
2
+ VERSION = "0.7.4"
3
3
  end
data/lib/etest-unit.rb CHANGED
@@ -48,19 +48,15 @@ module EtestUnit
48
48
  end
49
49
  end
50
50
 
51
- class TestCase < Test::Unit::TestCase
52
- module ClassMethods
53
- def etest=(etest)
54
- @etest = etest
55
- include etest
56
- end
57
-
58
- attr :tests, true
51
+ module TestCase
52
+ def etest=(etest)
53
+ @etest = etest
54
+ include etest
59
55
  end
60
-
61
- extend ClassMethods
62
56
 
63
- def self.suite
57
+ attr :tests, true
58
+
59
+ def suite
64
60
  suite_creator = EtestUnit::TestSuiteCreator.new(self)
65
61
  suite_creator.tests = tests
66
62
  suite = suite_creator.create
@@ -70,7 +66,8 @@ module EtestUnit
70
66
  end
71
67
 
72
68
  def self.run(etest, *tests)
73
- test_case_klass = Class.new(TestCase)
69
+ test_case_klass = Class.new(Test::Unit::TestCase)
70
+ test_case_klass.extend EtestUnit::TestCase
74
71
 
75
72
  test_case_klass.etest = etest
76
73
  test_case_klass.tests = tests
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etest-unit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -53,7 +53,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
53
53
  version: '0'
54
54
  segments:
55
55
  - 0
56
- hash: -3827139556998648464
56
+ hash: 1658487212361329493
57
57
  required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  none: false
59
59
  requirements: