Sha256: 4a7b1a724a7ee81fde3e40fcfc7d2ef0c694477a8b2b8897398cb0316d0c3783

Contents?: true

Size: 462 Bytes

Versions: 2

Compression:

Stored size: 462 Bytes

Contents

require 'spec_helper'

describe MovingsignApi::SetSoundCommand do
  describe "sound on" do
    subject { MovingsignApi::SetSoundCommand.new(true) }

    it "#subcommand_payload_bytes" do
      expect(subject.subcommand_payload_bytes).to eq [0x31]
    end
  end

  describe "sound off" do
    subject { MovingsignApi::SetSoundCommand.new(false) }

    it "#subcommand_payload_bytes" do
      expect(subject.subcommand_payload_bytes).to eq [0x30]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
movingsign_api-0.0.2 spec/commands/set_sound_command_spec.rb
movingsign_api-0.0.1 spec/commands/set_sound_command_spec.rb