Sha256: 9376637f647616bef70629f9a1bd15c75b7d011e22d2051b9da5af1c885c02be

Contents?: true

Size: 241 Bytes

Versions: 2

Compression:

Stored size: 241 Bytes

Contents

require 'spec_helper'

describe Ruler do
  let(:a) { [0,3] }
  let(:b) { [4,0] }

  it 'should have a unit' do
    expect(subject.unit).to eql(1)
  end

  it 'should measure distance' do
    expect(Ruler.distance(a,b)).to eql(5.0)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
straightedge-0.1.2 spec/straightedge/toolkit/ruler_spec.rb
straightedge-0.1.1 spec/straightedge/toolkit/ruler_spec.rb