reactor 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5fcccec2113ad9d7b9fe13be638e9a90fd31136
4
- data.tar.gz: 480fc1b84da2ff6d7f1b65f9f28b096569d7138f
3
+ metadata.gz: bd7f8f6737ea1370212d5abc5d9f43cd2325663e
4
+ data.tar.gz: 4aba90707e1d8aa642510e575bf415b2fc1a0c13
5
5
  SHA512:
6
- metadata.gz: f1602e32fbb4b3cebe872ef93b5c524efc06f68e363ace1efe23dbfcf405bd53e258635b0656cf172e2a040b088d5d8e0e91d82a2ea0c992238f3e695d4d299b
7
- data.tar.gz: 63c24a7678e21c7a6cf0e62e5a79981c551c96bd3ee978cc3b021bfccc857048bdedfe352e5d845125673a9da3ed6305da839f1e79eb665c9b182762fadc8d17
6
+ metadata.gz: 7b8245e6fdc7c246cdafd036dcd93046d242508b4d02dba60cedf0bf732ef901c5eafd7447ccbc0ec4a99af6ac17ad1b59f1f1c9875de67ae7d602296f91b342
7
+ data.tar.gz: 815f1656650d8f2e46b4094759f8474d2177b440608218ef7a653eb9eec23bcd4ed29788f6b6e3fde94b495fb4b697fd7ef03fea00ca47eb7e6f1cb5f9b592cd
@@ -1,8 +1,8 @@
1
1
  RSpec::Matchers.define :publish_event do |name, data = {}|
2
2
 
3
3
  match do |block|
4
- defaults = {:actor => anything, :target => anything, at: nil}
5
- Reactor::Event.should_receive(:publish).with(name, defaults.merge(data))
4
+ defaults = {:actor => anything}
5
+ Reactor::Event.should_receive(:publish).with(name, hash_including(defaults.merge(data)))
6
6
  block.call
7
7
  end
8
8
  end
@@ -10,14 +10,14 @@ end
10
10
  RSpec::Matchers.define :publish_events do |*args|
11
11
 
12
12
  match do |block|
13
- defaults = {:actor => anything, :target => anything, at: nil}
13
+ defaults = {:actor => anything}
14
14
 
15
15
  args.each do |event|
16
16
  case event
17
17
  when Symbol
18
18
  Reactor::Event.should_receive(:publish).with(event, anything)
19
19
  when Hash
20
- Reactor::Event.should_receive(:publish).with(event.keys.first, defaults.merge(event.values.first))
20
+ Reactor::Event.should_receive(:publish).with(event.keys.first, hash_including(defaults.merge(event.values.first)))
21
21
  end
22
22
  end
23
23
  block.call
@@ -1,3 +1,3 @@
1
1
  module Reactor
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reactor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - winfred