spec/lib/mina/backend/local_spec.rb in mina-1.0.0.beta2 vs spec/lib/mina/backend/local_spec.rb in mina-1.0.0.beta3
- old
+ new
@@ -2,9 +2,10 @@
describe Mina::Backend::Local do
let(:backend) { Mina::Backend::Local.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)