Rename mock connection interface
Rename inbox to messages to be more consistent
This commit is contained in:
parent
19afa23021
commit
4a087bc2eb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user