Sha256: 63926f712b9d000cfcab05894cade2888ec01d2d18af016c4185dc084cc5addf

Contents?: true

Size: 347 Bytes

Versions: 8

Compression:

Stored size: 347 Bytes

Contents

require 'spec_helper'

describe "DotGrid::Page::Grid" do
  describe "#post_initialize" do
    let(:subject) { DotGrid::Page::Grid.new({})}

    before do
      allow(::DotGrid::Pattern::Grid).to receive(:new)
    end

    it "draws the pattern" do
      expect(subject).to receive(:add_pattern)
      subject.post_initialize({})
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dot_grid-0.0.12 spec/lib/dot_grid/page/grid_spec.rb
dot_grid-0.0.11 spec/lib/dot_grid/page/grid_spec.rb
dot_grid-0.0.10 spec/lib/dot_grid/page/grid_spec.rb
dot_grid-0.0.9 spec/lib/dot_grid/page/grid_spec.rb
dot_grid-0.0.8 spec/lib/dot_grid/page/grid_spec.rb
dot_grid-0.0.7 spec/lib/dot_grid/page/grid_spec.rb
dot_grid-0.0.6 spec/lib/dot_grid/page/grid_spec.rb
dot_grid-0.0.5 spec/lib/dot_grid/page/grid_spec.rb