Sha256: b3e23600537539a23e89f16e7d8fcd02034833090186d1660bb52822cf38f688
Contents?: true
Size: 712 Bytes
Versions: 7
Compression:
Stored size: 712 Bytes
Contents
require 'spec_helper' describe Kuhsaft::Gridded do context 'included gridded module' do class GridClass include Kuhsaft::Gridded end it 'returns an array for the gridded class' do expect(GridClass.available_grid_sizes).to be_kind_of(Array) end it 'returns false on gridded? if no col count is set' do expect_any_instance_of(GridClass).to receive(:col_count).at_least(:once).and_return(0) expect(GridClass.new.gridded?).to be_falsey end it 'returns true on gridded? if a col count is set' do expect_any_instance_of(GridClass).to receive(:col_count).at_least(:once).and_return(10) expect(GridClass.new.gridded?).to be_truthy end end end
Version data entries
7 entries across 7 versions & 1 rubygems