Sha256: 806cd243c47538fff342178fe23166ce5af8d5a3fd4fed53a6be27287294df9c

Contents?: true

Size: 374 Bytes

Versions: 1

Compression:

Stored size: 374 Bytes

Contents

require 'spec_helper'
require 'pry'

describe Array do
  describe ".to_point" do
    subject do 
      [1,2]
    end

    context 'should decode straightforwardly as a geometric coordinate' do
      it 'should have an x-coordinate' do
	expect(subject.x).to eql(1)
      end

      it 'should have a y-coordinate' do
	expect(subject.y).to eql(2)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
straightedge-0.1.2 spec/straightedge/extend/array_spec.rb