fastly_nsq 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfbb2df1f2bb5e0a03516595b655c65c72238697
|
4
|
+
data.tar.gz: db467a7f87cf17d1dd6d69b577d8c8c051c87028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e07fc37bed4ef892de6ed12048c4ae9d8217b9f55f0ed08a1a3b16b118264be3e2a757b0fd9b35c433399b82ada9731ddaf026f204f507055fa283769fd9a780
|
7
|
+
data.tar.gz: 28044043d848e2143b517db10a5d2d6bbec39e244d18af1d313e38d5268ae0853e802d2c6c77aaeb8c77ee4bf560cfe02cae5447a8984bbb92459310a8264acd
|
@@ -22,6 +22,10 @@ module FakeMessageQueue
|
|
22
22
|
queue.push(message)
|
23
23
|
end
|
24
24
|
|
25
|
+
def terminate
|
26
|
+
# noop
|
27
|
+
end
|
28
|
+
|
25
29
|
private
|
26
30
|
|
27
31
|
def queue
|
@@ -41,6 +45,10 @@ module FakeMessageQueue
|
|
41
45
|
queue.size
|
42
46
|
end
|
43
47
|
|
48
|
+
def terminate
|
49
|
+
# noop
|
50
|
+
end
|
51
|
+
|
44
52
|
private
|
45
53
|
|
46
54
|
def queue
|
data/lib/fastly_nsq/version.rb
CHANGED
@@ -37,6 +37,13 @@ RSpec.describe FakeMessageQueue::Producer do
|
|
37
37
|
expect(FakeMessageQueue.queue.size).to eq 1
|
38
38
|
end
|
39
39
|
end
|
40
|
+
|
41
|
+
describe '#terminate' do
|
42
|
+
it 'has a terminate method which is a noop' do
|
43
|
+
producer = instance_double('FakeMessageQueue::Producer')
|
44
|
+
allow(producer).to receive(:terminate)
|
45
|
+
end
|
46
|
+
end
|
40
47
|
end
|
41
48
|
|
42
49
|
RSpec.describe FakeMessageQueue::Message do
|
@@ -101,4 +108,11 @@ RSpec.describe FakeMessageQueue::Consumer do
|
|
101
108
|
expect(popped_message). to eq message
|
102
109
|
end
|
103
110
|
end
|
111
|
+
|
112
|
+
describe '#terminate' do
|
113
|
+
it 'has a terminate method which is a noop' do
|
114
|
+
consumer = instance_double('FakeMessageQueue::Consumer')
|
115
|
+
allow(consumer).to receive(:terminate)
|
116
|
+
end
|
117
|
+
end
|
104
118
|
end
|