Sha256: 829626f67168c3a6a9638f4322ba34a9e0aad6661065df9edea38ed3d159ee12
Contents?: true
Size: 440 Bytes
Versions: 1
Compression:
Stored size: 440 Bytes
Contents
require 'object_protocol/message_expectation' class ObjectProtocol class StandIn attr_reader :name def initialize(protocol:, name:) @protocol = protocol @name = name end def sends(message) MessageExpectation.new( protocol: protocol, sender: self, message: message ).tap(&protocol.method(:add_expectation)) end private attr_reader :protocol end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
object_protocol-0.2.0 | lib/object_protocol/stand_in.rb |