Sha256: 8799db55066ba1ff510bf646654fc79c69884df4aed5cef7cf69c678f0eb4cf1

Contents?: true

Size: 1.04 KB

Versions: 13

Compression:

Stored size: 1.04 KB

Contents

require 'spec_helper'

shared_examples_for "a puppetfile action" do
  describe "initializing" do
    it "accepts the :root option" do
      described_class.new({root: "/some/nonexistent/path"}, [], {})
    end

    it "accepts the :puppetfile option" do
      described_class.new({puppetfile: "/some/nonexistent/path/Puppetfile"}, [], {})
    end

    it "accepts the :moduledir option" do
      described_class.new({moduledir: "/some/nonexistent/path/modules"}, [], {})
    end

  end
end

shared_examples_for "a puppetfile install action" do
  describe "initializing" do
    it "accepts the :root option" do
      described_class.new({root: "/some/nonexistent/path"}, [], {})
    end

    it "accepts the :puppetfile option" do
      described_class.new({puppetfile: "/some/nonexistent/path/Puppetfile"}, [], {})
    end

    it "accepts the :moduledir option" do
      described_class.new({moduledir: "/some/nonexistent/path/modules"}, [], {})
    end

    it "accepts the :force option" do
      described_class.new({force: true}, [], {})
    end

  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
r10k-3.15.0 spec/shared-examples/puppetfile-action.rb
akerl-r10k-3.14.2.1 spec/shared-examples/puppetfile-action.rb
r10k-3.14.2 spec/shared-examples/puppetfile-action.rb
r10k-3.14.1 spec/shared-examples/puppetfile-action.rb
r10k-3.14.0 spec/shared-examples/puppetfile-action.rb
r10k-3.13.0 spec/shared-examples/puppetfile-action.rb
r10k-3.12.1 spec/shared-examples/puppetfile-action.rb
r10k-3.12.0 spec/shared-examples/puppetfile-action.rb
r10k-3.11.0 spec/shared-examples/puppetfile-action.rb
r10k-3.10.0 spec/shared-examples/puppetfile-action.rb
r10k-3.9.3 spec/shared-examples/puppetfile-action.rb
r10k-3.9.2 spec/shared-examples/puppetfile-action.rb
r10k-3.9.1 spec/shared-examples/puppetfile-action.rb