Sha256: bbe0b411017e42cef0c3e3b0597f2d3bc849fc569171a996baededeefb27582b

Contents?: true

Size: 377 Bytes

Versions: 8

Compression:

Stored size: 377 Bytes

Contents

require 'spec_helper'

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

    before do
      allow(::DotGrid::Pattern::HorizontalRule).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/horizontal_rule_spec.rb
dot_grid-0.0.11 spec/lib/dot_grid/page/horizontal_rule_spec.rb
dot_grid-0.0.10 spec/lib/dot_grid/page/horizontal_rule_spec.rb
dot_grid-0.0.9 spec/lib/dot_grid/page/horizontal_rule_spec.rb
dot_grid-0.0.8 spec/lib/dot_grid/page/horizontal_rule_spec.rb
dot_grid-0.0.7 spec/lib/dot_grid/page/horizontal_rule_spec.rb
dot_grid-0.0.6 spec/lib/dot_grid/page/horizontal_rule_spec.rb
dot_grid-0.0.5 spec/lib/dot_grid/page/horizontal_rule_spec.rb