Sha256: 17b515014f617589c97b33ded3a68e1e579b241e8d8b5da9d440ef92387e245e

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

require 'spec_helper'

describe CompassPoint do
  describe '.azimuth' do

    it 'returns mid point' do
      expect(CompassPoint.azimuth('N')).to eq 0.0
      expect(CompassPoint.azimuth(:nw)).to eq 315.0
      expect(CompassPoint.azimuth('sbw')).to eq 191.25
      expect(CompassPoint.azimuth('X')).to be_nil
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
compass_point-1.0.0 spec/compass_point_spec.rb