Sha256: 81f06b84d679a81a6d789a32f8b243993ce7afb9164d211ce690203686d2e057
Contents?: true
Size: 556 Bytes
Versions: 2
Compression:
Stored size: 556 Bytes
Contents
require 'spec_helper' describe "DotGrid::Grid" do describe "#initialize" do let(:subject) { DotGrid::Grid.new({}) } it "calculates the number of rows" do allow(subject).to receive(:page_height).and_return(22) allow(subject).to receive(:spacing).and_return(5) expect(subject.page_rows).to eq(4) end it "calculates the number of columns" do allow(subject).to receive(:page_width).and_return(44) allow(subject).to receive(:spacing).and_return(6) expect(subject.page_columns).to eq(7) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dot_grid-0.0.3 | spec/lib/dot_grid/grid_spec.rb |
dot_grid-0.0.1 | spec/lib/dot_grid/grid_spec.rb |