Sha256: 6d92eb3d3c6a09324997c16e6b73d17203079b27c58f1927e183ea9a8cba359f
Contents?: true
Size: 676 Bytes
Versions: 3
Compression:
Stored size: 676 Bytes
Contents
require 'spec_helper' describe Mina::Backend::Remote do let(:backend) { Mina::Backend::Remote.new ['ls -al'] } before { Mina::Configuration.instance.set(:domain, 'localhost') } after { Mina::Configuration.instance.remove(:domain) } describe '#prepare' do it 'escpaces shellwords' do expect(backend.prepare).to eq("ssh localhost -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 -tt':\n#\nls -al\n ") Mina::Configuration.instance.remove(:simulate) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mina-1.0.0.beta5 | spec/lib/mina/backend/remote_spec.rb |
mina-1.0.0.beta4 | spec/lib/mina/backend/remote_spec.rb |
mina-1.0.0.beta3 | spec/lib/mina/backend/remote_spec.rb |