Rename mock connection interface

Rename inbox to messages to be more consistent
This commit is contained in:
Tim Kächele 2024-02-10 11:18:28 +01:00
parent 19afa23021
commit 4a087bc2eb

View File

@ -1,17 +1,15 @@
class MockConnection
def initialize
@inbox = []
@messages = []
end
def send(message)
@inbox.push(message)
@messages.push(message)
end
def messages
@inbox
end
attr_reader :messages
def clear_inbox!
@inbox = []
def clear_messages!
@messages = []
end
end