Sha256: fc6b30ba94d8144532b7832eea70ad4ba8c8b323878d9dcf8764f37517c07999
Contents?: true
Size: 601 Bytes
Versions: 9
Compression:
Stored size: 601 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/../test_helper") require 'artoo/adaptors/sphero' require 'sphero' describe Artoo::Adaptors::Sphero do before do @port = Artoo::Port.new('/dev/awesome') @adaptor = Artoo::Adaptors::Sphero.new(:port => @port) @sphero = mock('sphero') Sphero.stubs(:new).returns(@sphero) end it 'Artoo::Adaptors::Sphero#connect' do @adaptor.connect.must_equal true end it 'Artoo::Adaptors::Sphero#disconnect' do @adaptor.connect @sphero.expects(:close) @adaptor.disconnect @adaptor.connected?.must_equal false end end
Version data entries
9 entries across 9 versions & 1 rubygems