rabbit_feed 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/example/non_rails_app/Gemfile.lock +4 -4
- data/example/rails_app/Gemfile.lock +1 -1
- data/lib/rabbit_feed/testing_support/rspec_matchers/publish_event.rb +1 -0
- data/lib/rabbit_feed/version.rb +1 -1
- data/spec/lib/rabbit_feed/testing_support/rspec_matchers/publish_event_spec.rb +13 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: caa59494167f26b29ead2d8be4e547884c555bf8
|
4
|
+
data.tar.gz: 873561ab416044cbb81b0b085d56e7bbbc5084f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ddfa7d6c4163a6af9d48dcddc6dc87bc06f4e02530211d35d95292c77dc99d49873f05bf524d07a5a95a9ea78d9e140e9d3d4cd68afaf4022644f3a1aeffc7b
|
7
|
+
data.tar.gz: dee6c6afcee2e1967208cc4c5ad65441b6412763baabecf1ea8e42d46d7bd4693488e8ccb5e1a2c296afa9dab052168ec3dc1fac3a0ba05499f8dce1caa0c9c0
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../../
|
3
3
|
specs:
|
4
|
-
rabbit_feed (2.4.
|
4
|
+
rabbit_feed (2.4.3)
|
5
5
|
activemodel (>= 3.2.0, < 5.0.0)
|
6
6
|
activesupport (>= 3.2.0, < 5.0.0)
|
7
7
|
avro (>= 1.5.4, < 1.8.0)
|
@@ -11,10 +11,10 @@ PATH
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
activemodel (4.2.
|
15
|
-
activesupport (= 4.2.
|
14
|
+
activemodel (4.2.6)
|
15
|
+
activesupport (= 4.2.6)
|
16
16
|
builder (~> 3.1)
|
17
|
-
activesupport (4.2.
|
17
|
+
activesupport (4.2.6)
|
18
18
|
i18n (~> 0.7)
|
19
19
|
json (~> 1.7, >= 1.7.7)
|
20
20
|
minitest (~> 5.1)
|
data/lib/rabbit_feed/version.rb
CHANGED
@@ -21,8 +21,20 @@ module RabbitFeed
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
-
|
24
|
+
it 'clears any existing published_events' do
|
25
|
+
10.times.each do
|
26
|
+
RabbitFeed::Producer.publish_event event_name, event_payload
|
27
|
+
end
|
25
28
|
|
29
|
+
expect do
|
30
|
+
expect {
|
31
|
+
RabbitFeed::Producer.publish_event event_name, event_payload
|
32
|
+
}.to publish_event(event_name, event_payload)
|
33
|
+
end.to change { TestingSupport.published_events.count }.from(10).to(1)
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
context 'when the expectation is met' do
|
26
38
|
it 'validates' do
|
27
39
|
expect {
|
28
40
|
RabbitFeed::Producer.publish_event event_name, event_payload
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rabbit_feed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simply Business
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|