Sha256: 2652412de5d40c46ac0e721ead08bb54b6df1e20198e260a0c28f5d7428b941c
Contents?: true
Size: 688 Bytes
Versions: 10
Compression:
Stored size: 688 Bytes
Contents
require 'spec_helper' describe Sqed::BoundaryFinder::CrossFinder do let(:image) { ImageHelpers.of_size(800, 600) } let(:b) {Sqed::BoundaryFinder::CrossFinder.new(image: image)} let(:c) {b.boundaries} specify '#boundaries returns a Sqed::Boundaries instance' do expect(b.boundaries.class).to eq(Sqed::Boundaries) end specify 'the 0th image starts at x = 0' do expect(c.x_for(0)).to eq(0) end specify 'the 0th image starts at y = 0' do expect(c.y_for(0)).to eq(0) end specify 'the 0th image has width = 400' do expect(c.width_for(0)).to eq(400) end specify 'the 0th image has height = 300' do expect(c.height_for(0)).to eq(300) end end
Version data entries
10 entries across 10 versions & 1 rubygems