Sha256: 79c8564a7ce15dd0917a1d60f8ffc473a7185813ce203263f760590ae368262f

Contents?: true

Size: 709 Bytes

Versions: 50

Compression:

Stored size: 709 Bytes

Contents

require 'spec_helper'

require 'r10k/action/deploy/display'

describe R10K::Action::Deploy::Display do
  describe "initializing" do
    it "accepts a puppetfile option" do
      described_class.new({puppetfile: true}, [])
    end

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

    it "accepts a format option" do
      described_class.new({format: "json"}, [])
    end

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

  subject { described_class.new({config: "/some/nonexistent/path"}, []) }

  before do
    allow(subject).to receive(:puts)
  end

  it_behaves_like "a deploy action that requires a config file"
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
r10k-3.8.0 spec/unit/action/deploy/display_spec.rb
r10k-3.7.0 spec/unit/action/deploy/display_spec.rb
r10k-3.6.0 spec/unit/action/deploy/display_spec.rb
r10k-2.6.9 spec/unit/action/deploy/display_spec.rb
r10k-3.5.2 spec/unit/action/deploy/display_spec.rb
r10k-3.5.1 spec/unit/action/deploy/display_spec.rb
r10k-3.5.0 spec/unit/action/deploy/display_spec.rb
r10k-3.4.1 spec/unit/action/deploy/display_spec.rb
r10k-2.6.8 spec/unit/action/deploy/display_spec.rb
r10k-3.4.0 spec/unit/action/deploy/display_spec.rb
r10k-3.3.3 spec/unit/action/deploy/display_spec.rb
r10k-3.2.3 spec/unit/action/deploy/display_spec.rb
r10k-2.6.7 spec/unit/action/deploy/display_spec.rb
r10k-3.3.2 spec/unit/action/deploy/display_spec.rb
r10k-3.3.1 spec/unit/action/deploy/display_spec.rb
r10k-3.2.1 spec/unit/action/deploy/display_spec.rb
r10k-3.0.4 spec/unit/action/deploy/display_spec.rb
r10k-2.6.6 spec/unit/action/deploy/display_spec.rb
r10k-3.3.0 spec/unit/action/deploy/display_spec.rb
r10k-3.2.0 spec/unit/action/deploy/display_spec.rb