File tree Expand file tree Collapse file tree 4 files changed +2
-20
lines changed Expand file tree Collapse file tree 4 files changed +2
-20
lines changed Original file line number Diff line number Diff line change 3
3
module Concurrent
4
4
5
5
describe Configuration do
6
- with_full_reset
7
-
8
6
it 'creates a global timer pool' do
9
7
Concurrent . configuration . global_timer_set . should_not be_nil
10
8
Concurrent . configuration . global_timer_set . should respond_to ( :post )
Original file line number Diff line number Diff line change 7
7
module Concurrent
8
8
9
9
describe ScheduledTask do
10
- with_full_reset
11
-
12
10
context 'behavior' do
13
11
14
12
# obligation
@@ -56,9 +54,9 @@ def execute_dereferenceable(subject)
56
54
it_should_behave_like :dereferenceable
57
55
58
56
# observable
59
-
57
+
60
58
subject { ScheduledTask . new ( 0.1 ) { nil } }
61
-
59
+
62
60
def trigger_observable ( observable )
63
61
observable . execute
64
62
sleep ( 0.2 )
Original file line number Diff line number Diff line change 5
5
module Concurrent
6
6
7
7
describe TimerTask do
8
- with_full_reset
9
-
10
8
before ( :each ) do
11
9
# suppress deprecation warnings.
12
10
Concurrent ::TimerTask . any_instance . stub ( :warn )
Original file line number Diff line number Diff line change @@ -38,18 +38,6 @@ def kill_rogue_threads(warning = true)
38
38
end
39
39
40
40
class RSpec ::Core ::ExampleGroup
41
- def self . with_full_reset
42
- before ( :each ) do
43
- reset_gem_configuration
44
- end
45
-
46
- after ( :each ) do
47
- Thread . list . each do |thread |
48
- thread . kill unless thread == Thread . current
49
- end
50
- end
51
- end
52
-
53
41
include Concurrent ::TestHelpers
54
42
extend Concurrent ::TestHelpers
55
43
end
You can’t perform that action at this time.
0 commit comments