Sha256: 833368a8a1bed10c16323c6a3542454b2c0ef6e15f72dccb1d1da132b129dc48

Contents?: true

Size: 314 Bytes

Versions: 7

Compression:

Stored size: 314 Bytes

Contents

require 'spec_helper'

describe WhippedCream::Button do
  subject(:button) { described_class.new(name, pin: pin, block: block) }

  let(:name) { "Open/Close" }
  let(:pin) { nil }
  let(:block) { nil }

  its(:name) { should eq(name) }
  its(:id) { should eq(:open_close) }
  its(:type) { should eq(:button) }
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
whipped-cream-0.1.0 spec/lib/whipped-cream/button_spec.rb
whipped-cream-0.0.1 spec/lib/whipped-cream/button_spec.rb
whipped-cream-0.0.1pre5 spec/lib/whipped-cream/button_spec.rb
whipped-cream-0.0.1pre4 spec/lib/whipped-cream/button_spec.rb
whipped-cream-0.0.1pre3 spec/lib/whipped-cream/button_spec.rb
whipped-cream-0.0.1pre2 spec/lib/whipped-cream/button_spec.rb
whipped-cream-0.0.1pre1 spec/lib/whipped-cream/button_spec.rb