File tree Expand file tree Collapse file tree 2 files changed +65
-16
lines changed Expand file tree Collapse file tree 2 files changed +65
-16
lines changed Original file line number Diff line number Diff line change 9
9
end
10
10
11
11
it_should_behave_like :thread_pool
12
+
13
+ context '#max_queue' do
14
+
15
+ it 'is set to zero by default' do
16
+ pending
17
+ end
18
+
19
+ it 'returns the set value on creation' do
20
+ pending
21
+ end
22
+
23
+ it 'returns the set value when running' do
24
+ pending
25
+ end
26
+
27
+ it 'returns the set value after stopping' do
28
+ pending
29
+ end
30
+ end
31
+
32
+ context '#queue_length' do
33
+
34
+ it 'returns zero on creation' do
35
+ pending
36
+ end
37
+
38
+ it 'returns zero when there are no enqueued tasks' do
39
+ pending
40
+ end
41
+
42
+ it 'returns the size of the queue when tasks are enqueued' do
43
+ pending
44
+ end
45
+
46
+ it 'returns zero when stopped' do
47
+ pending
48
+ end
49
+ end
50
+
51
+ context '#remaining_capacity' do
52
+
53
+ it 'returns -1 when :max_queue is set to zero' do
54
+ pending
55
+ end
56
+
57
+ it 'returns :max_size on creation' do
58
+ pending
59
+ end
60
+
61
+ it 'returns :max_size when no tasks are enqueued' do
62
+ pending
63
+ end
64
+
65
+ it 'returns the remaining capacity when tasks are enqueued' do
66
+ pending
67
+ end
68
+
69
+ it 'returns :max_size when stopped' do
70
+ pending
71
+ end
72
+ end
73
+
74
+ context '#overload_policy' do
75
+ pending
76
+ end
12
77
end
Original file line number Diff line number Diff line change 54
54
end
55
55
end
56
56
57
- context '#max_queue' do
58
- pending
59
- end
60
-
61
- context '#queue_length' do
62
- pending
63
- end
64
-
65
- context '#remaining_capacity' do
66
- pending
67
- end
68
-
69
- context '#overload_policy' do
70
- pending
71
- end
72
-
73
57
context '#length' do
74
58
75
59
it 'returns zero on creation' do
You can’t perform that action at this time.
0 commit comments