Sha256: 2d09926a99d48503d4f5a09e52e08be8bc4a1cba765721a54ac3f276530aa743
Contents?: true
Size: 521 Bytes
Versions: 27
Compression:
Stored size: 521 Bytes
Contents
require 'spec_helper' describe Chake::Backend::Local do include_examples "Chake::Backend", Chake::Backend::Local let(:node) { Chake::Node.new('local://myusername@myhost/srv/chef') } it('runs commands with sh -c') { expect(backend.command_runner).to eq(['sh', '-c']) } it('rsyncs locally') { expect(backend.rsync_dest).to eq('/srv/chef/') } it('skips if hostname is not the local hostname') do allow(Socket).to receive(:gethostname).and_return('otherhost') expect(node.skip?).to eq(true) end end
Version data entries
27 entries across 27 versions & 1 rubygems