Sha256: b2c7c9a8be67cef5031f5f6aa74ff468d13640a0d6ff52b50ca23b2c3748fe78

Contents?: true

Size: 603 Bytes

Versions: 2

Compression:

Stored size: 603 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper.rb'
include MonomeSerial

describe SerialCommunicator do
  it "should exist" do
    SerialCommunicator.should_not be_nil
  end

  describe "A dummy serial connection" do
    before(:each) do
      @comm = SerialCommunicator.get_communicator("fake")
    end

    it "should be a dummy connection" do
      @comm.should_not be_real
    end

    describe "read" do
      it "should raise an ArgumentError if a non-array-like collection is passed as an argument" do
        lambda{@comm.read(1)}.should raise_error ArgumentError
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
monome_serial-1.1.0 spec/unit/monome_serial_spec.rb
monome_serial-1.0.0 spec/unit/monome_serial_spec.rb