Skip to content

Commit 665a65d

Browse files
committed
GH-33 - Added specs to CachedThreadPool#status and FixedThreadPool#status
1 parent c9b6d8a commit 665a65d

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

spec/concurrent/cached_thread_pool_shared.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@
100100
end
101101
end
102102

103+
context '#status' do
104+
105+
it 'returns an array' do
106+
subject.stub(:warn)
107+
subject.status.should be_kind_of(Array)
108+
end
109+
end
110+
103111
context '#idletime' do
104112

105113
subject{ described_class.new(idletime: 42) }

spec/concurrent/fixed_thread_pool_shared.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@
9494
end
9595
end
9696

97+
context '#status' do
98+
99+
it 'returns an array' do
100+
subject.stub(:warn)
101+
subject.status.should be_kind_of(Array)
102+
end
103+
end
104+
97105
context '#idletime' do
98106

99107
it 'returns zero' do

0 commit comments

Comments
 (0)