Sha256: f316585ad81b53082daae047091fabd88342c034af98de08345993b58cd86aee
Contents?: true
Size: 641 Bytes
Versions: 1
Compression:
Stored size: 641 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')) require 'meac_control/command/drive' describe MEACControl::Command::Drive do before(:each) do @cmd = MEACControl::Command::Drive.new end it_should_behave_like "a class that includes MEACControl::Command::Generic" it "has set the command to 'Drive'" do @cmd.command.should == 'Drive' end describe "#on" do it "sets the value to 'ON'" do @cmd.on @cmd.value.should == 'ON' end end describe "#off" do it "sets the value to 'OFF'" do @cmd.off @cmd.value.should == 'OFF' 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/drive_spec.rb |