Sha256: 5d515fe4673803a745577fd6099aade022799f3cff5bbd239e37ee36589250a6
Contents?: true
Size: 535 Bytes
Versions: 1
Compression:
Stored size: 535 Bytes
Contents
require 'spec_helper' require production_code describe Milight::Controller do let(:commander) { instance_double(Milight::Commander) } subject { described_class.new '127.0.0.1', 8080 } before { allow(Milight::Commander).to receive(:new).and_return(commander) } describe '#all' do it 'returns an RGBW all object' do expect(subject.all).to be_a Milight::RgbwAll end end describe '#group' do it 'returns a RGBW group object' do expect(subject.group(1)).to be_a Milight::RgbwGroup end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
milight-easybulb-1.0.0 | spec/milight/controller_spec.rb |