Sha256: 63876cfc132d0204a6f3caae7ed656ecab715056e44e542d86654522032f3990
Contents?: true
Size: 655 Bytes
Versions: 1
Compression:
Stored size: 655 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Mina::Backend::Remote do let(:backend) { described_class.new ['ls -al'] } before { Mina::Configuration.instance.set(:domain, 'localhost') } describe '#prepare' do it 'escpaces shellwords' do expect(backend.prepare).to eq('ssh localhost -p 22 -tt -- \\[\\"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 via 'ssh localhost -p 22 -tt':\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/remote_spec.rb |