Sha256: 143b229a1bf6845980ff60d9ac9d7cd7078906592b160659bde80594c4a451f4

Contents?: true

Size: 529 Bytes

Versions: 2

Compression:

Stored size: 529 Bytes

Contents

require 'spec_helper'
describe Straightedge::Rose do
  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/rose_spec.rb
straightedge-0.1.1 spec/straightedge/toolkit/rose_spec.rb