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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a93c5517c96292a4f5b66d94f7b47e22a4b03e7
4
- data.tar.gz: e7287f3b58512d1f978b12f76c4cbbf0dcf93de3
3
+ metadata.gz: caa59494167f26b29ead2d8be4e547884c555bf8
4
+ data.tar.gz: 873561ab416044cbb81b0b085d56e7bbbc5084f2
5
5
  SHA512:
6
- metadata.gz: 0915d485965f4d1d8af0164c1fdfa958f6e332405c7dbb48416a9c0646911320362a780abbcf7382cedf95a5014c0cd0818906f4d859a545f1312d454e6c8d49
7
- data.tar.gz: 024c4dace050cb7c72e09333d88a5eede77e68f4d1c549daaf4c557a94ad4fd5f67e6647931cfb5731219775bb2c4af04018eb0ca2bc34219d71936eb0b985bf
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.2)
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.5.1)
15
- activesupport (= 4.2.5.1)
14
+ activemodel (4.2.6)
15
+ activesupport (= 4.2.6)
16
16
  builder (~> 3.1)
17
- activesupport (4.2.5.1)
17
+ activesupport (4.2.6)
18
18
  i18n (~> 0.7)
19
19
  json (~> 1.7, >= 1.7.7)
20
20
  minitest (~> 5.1)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../
3
3
  specs:
4
- rabbit_feed (2.4.2)
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)
@@ -16,6 +16,7 @@ module RabbitFeed
16
16
  end
17
17
 
18
18
  begin
19
+ TestingSupport.published_events.clear
19
20
  given_proc.call
20
21
  rescue
21
22
  end
@@ -1,3 +1,3 @@
1
1
  module RabbitFeed
2
- VERSION = '2.4.2'
2
+ VERSION = '2.4.3'
3
3
  end
@@ -21,8 +21,20 @@ module RabbitFeed
21
21
  end
22
22
  end
23
23
 
24
- context 'when the expectation is met' do
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.2
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-02-24 00:00:00.000000000 Z
11
+ date: 2016-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny