Sha256: 2093146239da695dae37b10982c67a94a4c6c232918faaf6ea30736c90b3683f
Contents?: true
Size: 968 Bytes
Versions: 3
Compression:
Stored size: 968 Bytes
Contents
require 'spec_helper' RSpec.describe 'default', type: :rake do describe 'ssh_keyscan' do it 'scans ssh' do expect { invoke_all }.to output(output_file('ssh_keyscan')).to_stdout end end describe 'run' do it 'runs command' do subject.invoke('ls -al') expect { run_commands.invoke }.to output(output_file('run')).to_stdout end it 'exits if no command given' do expect { subject.invoke }.to raise_error(SystemExit) end end describe 'ssh' do it 'runs ssh' do expect_any_instance_of(Kernel).to receive(:exec) subject.invoke end end describe 'debug_configuration_variables' do it 'prints configrtion variables' do Mina::Configuration.instance.set(:debug_configuration_variables, true) expect { invoke_all }.to output(/------- Printing current config variables -------/).to_stdout Mina::Configuration.instance.remove(:debug_configuration_variables) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mina-1.0.0.beta5 | spec/tasks/default_spec.rb |
mina-1.0.0.beta4 | spec/tasks/default_spec.rb |
mina-1.0.0.beta3 | spec/tasks/default_spec.rb |