class TestInsteon_2412N_Marshaller
Public Instance Methods
setup()
click to toggle source
# File lib/belphanior/servant/homenetwork/test/tc_insteon_2412n_marshaller.rb, line 8 def setup @netmock = mock('Net::HTTP') @requestmock = mock() @marshaller = Belphanior::Servant::HomeNetwork::Insteon_2412n_Marshaller.new( 'localhost', @netmock) end
test_send()
click to toggle source
# File lib/belphanior/servant/homenetwork/test/tc_insteon_2412n_marshaller.rb, line 15 def test_send input = "02636600" @netmock.expects(:start).with('localhost',80).yields(@requestmock) @requestmock.expects(:post).with("/3?"+input+"=I=3","") @marshaller.send(input) end