etest-unit 0.7.7 → 0.8.0

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.7"
2
+ VERSION = "0.8.0"
3
3
  end
data/lib/etest-unit.rb CHANGED
@@ -16,16 +16,6 @@ module EtestUnit
16
16
  end
17
17
 
18
18
  class TestRunnerMediator < Test::Unit::UI::TestRunnerMediator
19
- def run
20
- if defined?(ActiveRecord)
21
- ActiveRecord::Base.transaction do
22
- super
23
- raise ActiveRecord::Rollback, "Rollback test transaction"
24
- end
25
- else
26
- super
27
- end
28
- end
29
19
  end
30
20
 
31
21
  class TestSuiteCreator < Test::Unit::TestSuiteCreator
@@ -63,6 +53,17 @@ module EtestUnit
63
53
  suite.name = @etest.name
64
54
  suite
65
55
  end
56
+
57
+ def run_test
58
+ if defined?(ActiveRecord)
59
+ ActiveRecord::Base.transaction do
60
+ super
61
+ raise ActiveRecord::Rollback, "Rollback test transaction"
62
+ end
63
+ else
64
+ super
65
+ end
66
+ end
66
67
  end
67
68
 
68
69
  def self.run(etest, *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.7
4
+ version: 0.8.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-07-12 00:00:00.000000000 Z
12
+ date: 2013-07-17 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: -4234680264188978204
56
+ hash: 3935101071244175937
57
57
  required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  none: false
59
59
  requirements: