Sha256: 7690cb2d06f4211ec325bed0edc6e1e0a63445ba1868eea89986e9d67321c24d
Contents?: true
Size: 581 Bytes
Versions: 1
Compression:
Stored size: 581 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Mina::Backend::Local do let(:backend) { described_class.new ['ls -al'] } describe '#prepare' do it 'escpaces shellwords' do Mina::Configuration.instance.remove(:simulate) expect(backend.prepare).to eq('\\[\\"ls\\ -al\\"\\]') end it 'adds debug if simualte' do Mina::Configuration.instance.set(:simulate, true) expect(backend.prepare).to eq("#!/usr/bin/env bash\n# Executing the following:\n#\nls -al\n ") Mina::Configuration.instance.remove(:simulate) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mina-1.2.5 | spec/lib/mina/backend/local_spec.rb |