Sha256: 2014fcd0039d787235daa2f79849916d82a4d109ffc4f8cb56514c63e657a2de

Contents?: true

Size: 432 Bytes

Versions: 10

Compression:

Stored size: 432 Bytes

Contents

require 'itamae'

module Itamae
  describe Resource::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

10 entries across 10 versions & 1 rubygems

Version Path
itamae-1.0.0.beta11 spec/unit/lib/itamae/resource/package_spec.rb
itamae-1.0.0.beta10 spec/unit/lib/itamae/resource/package_spec.rb
itamae-1.0.0.beta9 spec/unit/lib/itamae/resource/package_spec.rb
itamae-1.0.0.beta8 spec/unit/lib/itamae/resource/package_spec.rb
itamae-1.0.0.beta7 spec/unit/lib/itamae/resource/package_spec.rb
itamae-1.0.0.beta6 spec/unit/lib/itamae/resource/package_spec.rb
itamae-1.0.0.beta5 spec/unit/lib/itamae/resource/package_spec.rb
itamae-1.0.0.beta4 spec/unit/lib/itamae/resource/package_spec.rb
itamae-1.0.0.beta3 spec/unit/lib/itamae/resource/package_spec.rb
itamae-1.0.0.beta2 spec/unit/lib/itamae/resource/package_spec.rb