metacosm 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/metacosm/support/spec_harness.rb +6 -6
- data/lib/metacosm/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: 850a05330da093fcba8436906416e9028e2f282b
|
4
|
+
data.tar.gz: 26b6ea32702e2dea63c926d1da6c908e226a8cb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a54a6a5538cb133c574741480592861560b350f8d21b906c724c960116818a674d6556bb283028b0caf1c83fd0c0efe0d31679182fd0fce7b9f0e6bed36e612f
|
7
|
+
data.tar.gz: 614fb21c52f44e0b00c39295a07c0bf1e96d4e65f6b2df3f9f6193ca73b8c36e74e0e6712a41ce9899a079d7ae6812252b75efac354f8138c0f2ee4c42c6c852
|
@@ -1,9 +1,9 @@
|
|
1
1
|
RSpec::Matchers.define :trigger_event do |event|
|
2
2
|
match do |command|
|
3
3
|
# PassiveRecord.drop_all
|
4
|
-
Simulation.current.clear!
|
5
|
-
Simulation.current.apply(command)
|
6
|
-
Simulation.current.events.include?(event)
|
4
|
+
Metacosm::Simulation.current.clear!
|
5
|
+
Metacosm::Simulation.current.apply(command)
|
6
|
+
Metacosm::Simulation.current.events.include?(event)
|
7
7
|
end
|
8
8
|
|
9
9
|
failure_message do |command|
|
@@ -14,12 +14,12 @@ end
|
|
14
14
|
RSpec::Matchers.define :trigger_events do |*events|
|
15
15
|
match do |command|
|
16
16
|
# PassiveRecord.drop_all
|
17
|
-
Simulation.current.clear!
|
17
|
+
Metacosm::Simulation.current.clear!
|
18
18
|
|
19
|
-
Simulation.current.apply(command)
|
19
|
+
Metacosm::Simulation.current.apply(command)
|
20
20
|
|
21
21
|
events.all? do |event|
|
22
|
-
Simulation.current.events.include?(event)
|
22
|
+
Metacosm::Simulation.current.events.include?(event)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
data/lib/metacosm/version.rb
CHANGED