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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user