shoulda-addons 0.2.0 → 0.2.1
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/README.md +1 -1
- data/lib/shoulda_benchmark.rb +3 -1
- metadata +2 -2
data/README.md
CHANGED
|
@@ -12,6 +12,6 @@ Patches Test::Unit to print out test names colored either red or green (you can
|
|
|
12
12
|
|
|
13
13
|
Install from gemcutter via: `gem install shoulda-addons`
|
|
14
14
|
|
|
15
|
-
Is it safe for Ruby 1.9?
|
|
15
|
+
Is it safe for Ruby 1.9? Yes! Support for the new MiniTest framework is built-in.
|
|
16
16
|
|
|
17
17
|
Author: Mathias Meyer <meyer@paperplanes.de>
|
data/lib/shoulda_benchmark.rb
CHANGED
|
@@ -25,6 +25,7 @@ if defined?(MiniTest::Unit)
|
|
|
25
25
|
end
|
|
26
26
|
end
|
|
27
27
|
else
|
|
28
|
+
require 'test/unit/testresult'
|
|
28
29
|
module Test
|
|
29
30
|
module Unit
|
|
30
31
|
class TestResult
|
|
@@ -39,11 +40,12 @@ else
|
|
|
39
40
|
end
|
|
40
41
|
end
|
|
41
42
|
|
|
43
|
+
require 'test/unit/testcase'
|
|
42
44
|
module Test
|
|
43
45
|
module Unit
|
|
44
46
|
class TestCase
|
|
45
47
|
def self.method_added(name)
|
|
46
|
-
return if @ignoring_added_methods
|
|
48
|
+
return if @ignoring_added_methods
|
|
47
49
|
|
|
48
50
|
@__instrumented_methods ||= {}
|
|
49
51
|
return unless name.to_s.match(/^test:/) || @__instrumented_methods[name]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shoulda-addons
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mathias Meyer
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-10-
|
|
12
|
+
date: 2009-10-19 00:00:00 +02:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|