Sha256: 34900d1d9dcbea3fc9493833fbc04a28243aed6e74f45f6c7c4a84b1e0471dc0

Contents?: true

Size: 600 Bytes

Versions: 2

Compression:

Stored size: 600 Bytes

Contents

require 'spec_helper'

describe Compass do
  let(:origin) { [0,0] }

  context "roses" do
    it 'should construct a simple rose' do
      %i[ north south east west ].each do |d| 
	expect(Rose.simple.directions.keys).to include(d) 
      end
    end

    it 'should construct an extended rose' do
      expect(Rose.extended.directions).to eql({
        :east  => [1, 0],
        :north => [0, -1],
        :northeast => [1, -1],
        :northwest => [-1, -1],
        :south => [0, 1],
        :southeast => [1, 1],
        :southwest => [-1, 1],
        :west => [-1, 0]
      })
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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