Sha256: d7ff9e2857462251215ad577fd381a183c12e83ec877474f227de12d3f706909

Contents?: true

Size: 374 Bytes

Versions: 3

Compression:

Stored size: 374 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Parse do
  include Parse

  it "should parse digital" do
    d = Digital.new(8)
    d.should be_digital
  end

  it "should parse digital" do
    d = Bool.new(8)
    d.to_s.should eql("ON")
  end

  it "should parse analog ratio" do
    d = Knob.new(1023)
    d.ratio.should eql(100)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
subduino-0.5.0 spec/subduino/parse_spec.rb
subduino-0.3.1 spec/subduino/parse_spec.rb
subduino-0.2.2 spec/subduino/parse_spec.rb