Sha256: 9ba2cba863e6af8d1335d2772d349470bee8e3c21fa524dab27935bf84fd7ee2

Contents?: true

Size: 438 Bytes

Versions: 6

Compression:

Stored size: 438 Bytes

Contents

require 'spec_helper'

describe "DotGrid::Generator" do
  describe "#initialize" do
    let(:subject) { DotGrid::Generator.new({}) }

    it "creates a new document" do
      expect(subject.document).to_not be_nil
    end
  end

  describe "#generate" do
    it "renders a file with the file name" do
      subject = DotGrid::Generator.new({})
      expect(subject.document).to receive(:generate)
      subject.generate
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dot_grid-0.0.12 spec/lib/dot_grid/generator_spec.rb
dot_grid-0.0.11 spec/lib/dot_grid/generator_spec.rb
dot_grid-0.0.10 spec/lib/dot_grid/generator_spec.rb
dot_grid-0.0.9 spec/lib/dot_grid/generator_spec.rb
dot_grid-0.0.8 spec/lib/dot_grid/generator_spec.rb
dot_grid-0.0.7 spec/lib/dot_grid/generator_spec.rb