Sha256: 7d2f5ca0b39e4df47487359eccd8b65a6717dbb268822a3e5d7c63ca7b042434

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 Bytes

Contents

require 'itamae'

module Itamae
  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_specinfra).with(:install_package, :package_name)
        subject.install_action
      end
    end
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itamae-1.0.0.beta1 spec/unit/lib/itamae/resources/package_spec.rb