spec/straightedge/extend/array_spec.rb in straightedge-0.1.0 vs spec/straightedge/extend/array_spec.rb in straightedge-0.1.1

- old
+ new

@@ -1,11 +1,6 @@ require 'spec_helper' -require 'straightedge/mark' -require 'straightedge/figure' -require 'straightedge/compass' -require 'straightedge/rose' -require 'straightedge/extend/array' require 'pry' describe Array do describe ".to_point" do subject do @@ -32,10 +27,10 @@ it 'should have a center' do expect(subject.center).to eql([2,2]) end let(:expected_adjacent) do - [[1, 1], [1, 3], [2, 2], [0, 2], [2, 1], [2, 3], [0, 1], [0, 3], [3, 1], [3, 3], [4, 2], [4, 1], [4, 3]] + [[2, 2], [2, 3], [2, 1], [1, 1], [3, 1], [1, 3], [3, 3], [4, 2], [0, 2], [0, 1], [0, 3], [4, 1], [4, 3]] end it 'should have adjacent coordinates' do expect(subject.adjacent).to eql(expected_adjacent) end end