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 class MockConnection
def initialize def initialize
@inbox = [] @messages = []
end end
def send(message) def send(message)
@inbox.push(message) @messages.push(message)
end end
def messages attr_reader :messages
@inbox
end
def clear_inbox! def clear_messages!
@inbox = [] @messages = []
end end
end end