em-minitest-spec 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +14 -0
- data/lib/em/minitest/spec.rb +9 -2
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
=== 1.1.1 / 2011-07-12
|
2
|
+
|
3
|
+
* 1 minor enhancement
|
4
|
+
|
5
|
+
* Define timeout_interval method so library users can define their own
|
6
|
+
timeout length.
|
7
|
+
|
8
|
+
=== 1.1.0 / 2011-07-11
|
9
|
+
|
10
|
+
* 2 minor enhancements
|
11
|
+
|
12
|
+
* Fix gem name from 'em_minitest_spec' to 'em-minitest-spec'.
|
13
|
+
* Change calls of EM.add_timer(0.1) to EM.next_tick.
|
14
|
+
|
1
15
|
=== 1.0.0 / 2011-06-11
|
2
16
|
|
3
17
|
* 1 major enhancement
|
data/lib/em/minitest/spec.rb
CHANGED
@@ -4,7 +4,7 @@ require 'minitest/spec'
|
|
4
4
|
module EM # :nodoc:
|
5
5
|
module MiniTest # :nodoc:
|
6
6
|
module Spec # :nodoc
|
7
|
-
VERSION = '1.1.
|
7
|
+
VERSION = '1.1.1' # :nodoc:
|
8
8
|
|
9
9
|
##
|
10
10
|
# +wait+ indicates that the spec is not expected to be completed when
|
@@ -71,6 +71,13 @@ module EM # :nodoc:
|
|
71
71
|
wait!
|
72
72
|
end
|
73
73
|
|
74
|
+
##
|
75
|
+
# The amount of time to wait for a test to finish before raising an
|
76
|
+
# exception. Override this in your class to allow tests more time to run.
|
77
|
+
def timeout_interval
|
78
|
+
0.1
|
79
|
+
end
|
80
|
+
|
74
81
|
def self.included base # :nodoc:
|
75
82
|
base.extend(ClassMethods)
|
76
83
|
end
|
@@ -83,7 +90,7 @@ module EM # :nodoc:
|
|
83
90
|
@wait = false
|
84
91
|
|
85
92
|
EM.run do
|
86
|
-
@timeout = EM.add_timer(
|
93
|
+
@timeout = EM.add_timer(timeout_interval) do
|
87
94
|
flunk "test timed out!"
|
88
95
|
end
|
89
96
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: em-minitest-spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.1.
|
5
|
+
version: 1.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- pete higgins
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-07-
|
13
|
+
date: 2011-07-13 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: eventmachine
|