reactor 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reactor/testing/matchers.rb +4 -4
- data/lib/reactor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd7f8f6737ea1370212d5abc5d9f43cd2325663e
|
4
|
+
data.tar.gz: 4aba90707e1d8aa642510e575bf415b2fc1a0c13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
data/lib/reactor/version.rb
CHANGED