Sha256: df2148bc3e0f831668be12776b7a637a347b51759f2594cd28a8a05f844bb810
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
require_relative '../../test_helper' describe BlinkStick::ColorHandler do class ColorMock include BlinkStick::ColorHandler end subject { ColorMock.new } describe '#off' do it 'will set the color to [0,0,0]' do subject.stub :color=, [255, 255, 255] do subject.off.must_equal [0, 0, 0] end end end describe '#random_color' do it 'will return an array of 3 random numbers' do subject.stub :color=, [255,255,255] do subject.random_color.must_be_instance_of Array end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blink_stick-0.1.1 | test/lib/blink_stick/color_handler_test.rb |