Sha256: 582d2cbb1bd8961c877fe2d449baa03b6733fdde887fd2d2b2e58df8af760766

Contents?: true

Size: 355 Bytes

Versions: 8

Compression:

Stored size: 355 Bytes

Contents

require 'spec_helper'

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

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

    it "adds 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/dot_grid_spec.rb
dot_grid-0.0.11 spec/lib/dot_grid/page/dot_grid_spec.rb
dot_grid-0.0.10 spec/lib/dot_grid/page/dot_grid_spec.rb
dot_grid-0.0.9 spec/lib/dot_grid/page/dot_grid_spec.rb
dot_grid-0.0.8 spec/lib/dot_grid/page/dot_grid_spec.rb
dot_grid-0.0.7 spec/lib/dot_grid/page/dot_grid_spec.rb
dot_grid-0.0.6 spec/lib/dot_grid/page/dot_grid_spec.rb
dot_grid-0.0.5 spec/lib/dot_grid/page/dot_grid_spec.rb