diff --git a/test/adaptors/firmata_test.rb b/test/adaptors/firmata_test.rb index d25782e..5340289 100644 --- a/test/adaptors/firmata_test.rb +++ b/test/adaptors/firmata_test.rb @@ -66,6 +66,7 @@ it "#analog_read" do @firmata_event.stubs(:name).returns(:analog_read_1) @firmata_event.stubs(:data).returns([128]) + @firmata.stubs(:analog_pins).returns([0,1]) @firmata.expects(:read_and_process) @adaptor.analog_read(1).must_equal 128 end