etest-unit 0.8.3 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/etest-unit.rb CHANGED
@@ -5,6 +5,15 @@ require File.dirname(__FILE__) + "/module_ext"
5
5
 
6
6
  require "test/unit/ui/console/testrunner"
7
7
 
8
+ # The Etest::Helper module will be included in all etests.
9
+ module Etest
10
+ module Helper
11
+ def etest?
12
+ true
13
+ end
14
+ end
15
+ end
16
+
8
17
  module EtestUnit
9
18
  class Error < ArgumentError; end
10
19
 
@@ -100,6 +109,7 @@ module EtestUnit
100
109
  def self.run(etest, *tests)
101
110
  test_case_klass = Class.new(Test::Unit::TestCase)
102
111
  test_case_klass.extend EtestUnit::TestCase
112
+ test_case_klass.send :include, Etest::Helper
103
113
 
104
114
  test_case_klass.etest = etest
105
115
  test_case_klass.tests = tests
@@ -1,3 +1,3 @@
1
1
  module EtestUnit
2
- VERSION = "0.8.3"
2
+ VERSION = "0.9.0"
3
3
  end
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.8.3
4
+ version: 0.9.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-21 00:00:00.000000000 Z
12
+ date: 2013-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test-unit
@@ -53,7 +53,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
53
53
  version: '0'
54
54
  segments:
55
55
  - 0
56
- hash: 4133727308211617544
56
+ hash: 2699735435160365469
57
57
  required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  none: false
59
59
  requirements: