Sha256: 7c668f0443e08250af03bea8cf0340d7977b4649e1e1bffeaf2ccf81579eb498
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
require 'spec_helper' describe "DotGrid::Page::Checkerboard" do describe "#draw" do let(:pdf) { double('pdf', bounds: double('bounds')) } let(:subject) { DotGrid::Page::Checkerboard.new({pdf: pdf})} let(:pattern) { double('pattern') } before do allow(pdf).to receive(:start_new_page) allow(subject).to receive(:pattern).and_return(pattern) end it "draws the pattern" do expect(pattern).to receive(:draw) subject.generate end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dot_grid-0.0.4 | spec/lib/dot_grid/page/checkerboard_spec.rb |