Sha256: 7b7b8ceceb60d1c00a8f93ce261473174dd87cb83f27648a23afdb16787d1814
Contents?: true
Size: 508 Bytes
Versions: 7
Compression:
Stored size: 508 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 Socket.stub(:gethostname).and_return('otherhost') expect(node.skip?).to eq(true) end end
Version data entries
7 entries across 7 versions & 1 rubygems