spec/lib/mina/commands_spec.rb in mina-1.0.3 vs spec/lib/mina/commands_spec.rb in mina-1.0.4

- old
+ new

@@ -66,18 +66,18 @@ it 'joins all the commands' do expect(commands.process).to eq("ls -al\npwd") end it 'joins all the commands within a path' do - expect(commands.process('some/path')).to eq('(cd some/path && ls -al && pwd)') + expect(commands.process('some/path')).to eq('(cd some/path && ls -al && pwd && cd -)') end context 'when verbose' do before { Mina::Configuration.instance.set(:verbose, true) } after { Mina::Configuration.instance.remove(:verbose) } it 'joins all the commands within a path and echoes it' do - expect(commands.process('some/path')).to eq("(cd some/path && echo \"$ cd some/path\" && ls -al && pwd)") + expect(commands.process('some/path')).to eq("(cd some/path && echo \"$ cd some/path\" && ls -al && pwd && cd -)") end end end describe '#run' do