From 1dcc1146ea7eda511e7c19b98ebda27409367b39 Mon Sep 17 00:00:00 2001 From: Javier Cervantes Date: Fri, 4 Jul 2014 14:09:31 -0500 Subject: [PATCH] Fixing tests --- test/adaptors/firmata_test.rb | 1 + 1 file changed, 1 insertion(+) 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