Sha256: 9c21d56e8647c103004883644cb047676fadf1b4c39ca0ad48017d9c47e9c92d

Contents?: true

Size: 429 Bytes

Versions: 2

Compression:

Stored size: 429 Bytes

Contents

require 'lightchef'

module Lightchef
  describe Resources::Package do
    let(:recipe) { double(:recipe) }
    subject(:resource) { described_class.new(recipe, "name") }

    describe "#install_action" do
      it "runs install command of specinfra" do
        subject.name :package_name
        expect(subject).to receive(:run_command).with(:install, :package_name)
        subject.install_action
      end
    end
  end
end


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lightchef-0.0.2 spec/lib/lightchef/resources/package_spec.rb
lightchef-0.0.1 spec/lib/lightchef/resources/package_spec.rb