spec/support/fake_actor.rb in mutant-0.8.10 vs spec/support/fake_actor.rb in mutant-0.8.11
- old
+ new
@@ -14,11 +14,11 @@
unless eql?(other)
fail "Got:\n#{other.inspect}\nExpected:\n#{inspect}"
end
block.call(other.message) if block
end
- end
+ end # Expectation
class MessageSequence
include Adamantium::Flat, Concord::Public.new(:messages)
def self.new
@@ -45,11 +45,11 @@
end
def consumed?
messages.empty?
end
- end
+ end # MessageSequence
class Env
include Concord.new(:messages, :mailbox_names)
def spawn
@@ -87,11 +87,11 @@
end
def bind(sender)
Mutant::Actor::Binding.new(self, sender)
end
- end
+ end # Mailbox
class Sender
include Concord.new(:name, :messages)
def call(message)
@@ -103,7 +103,7 @@
include Concord::Public.new(:name, :messages)
def call
messages.receiving(name)
end
- end
-end
+ end # Receiver
+end # FakeActor