Sha256: aecc4e6d321d78f9a556f8855398e933956dba58374055184de3d848b4dd72b1
Contents?: true
Size: 624 Bytes
Versions: 8
Compression:
Stored size: 624 Bytes
Contents
require 'itamae' module Itamae describe Resource::Link do let(:recipe) { double(:recipe) } subject(:resource) do described_class.new(recipe, "name") do to "/path/to/target" end end describe "#create_action" do it "runs install command of specinfra" do subject.link :link_name expect(subject).to receive(:run_specinfra).with(:check_file_is_linked_to, :link_name, "/path/to/target").and_return(false) expect(subject).to receive(:run_specinfra).with(:link_file_to, :link_name, "/path/to/target") subject.create_action end end end end
Version data entries
8 entries across 8 versions & 1 rubygems