Module: FSR::Listener::Mock

Defined in:
lib/fsr/listener/mock.rb

Overview

This module is intended to be used with em-spec

Instance Method Summary collapse

Instance Method Details

#receive_reply(reply) ⇒ Object



14
15
16
# File 'lib/fsr/listener/mock.rb', line 14

def receive_reply(reply)
  replies << reply
end

#repliesObject



18
19
20
# File 'lib/fsr/listener/mock.rb', line 18

def replies
  @recvd_reply ||= []
end

#send_data(data) ⇒ Object



6
7
8
# File 'lib/fsr/listener/mock.rb', line 6

def send_data(data)
  sent_data << data
end

#sent_dataObject



10
11
12
# File 'lib/fsr/listener/mock.rb', line 10

def sent_data
  @sent_data ||= []
end