Sha256: 74cb2cf0b8da892305b5fa2a97fa42cd038282d4fd33ad4e262667e3aae91534

Contents?: true

Size: 603 Bytes

Versions: 1

Compression:

Stored size: 603 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper'))
require 'meac_control/command/fan_speed'

describe MEACControl::Command::FanSpeed do
  before(:each) do
    @cmd = MEACControl::Command::FanSpeed.new
  end

  it_should_behave_like "a class that includes MEACControl::Command::Generic"

  it "has set the command to 'FanSpeed'" do
    @cmd.command.should == 'FanSpeed'
  end

  %w{low mid1 mid2 high auto}.each do |c|
    describe "##{c}" do
      it "sets the value to '#{c}'" do
        @cmd.send(c)
        @cmd.value.should == c
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
meac_control-1.0.0 spec/lib/meac_control/command/fan_speed_spec.rb