Sha256: 22ef5452836332a75be78957cf0809a6a8459585dfb323a9670226dff8cab34c
Contents?: true
Size: 978 Bytes
Versions: 2
Compression:
Stored size: 978 Bytes
Contents
require 'spec_helper' RSpec.describe 'default', type: :rake do describe 'ssh_keyscan_repo' do it 'scans ssh' do expect { invoke_all }.to output(output_file('ssh_keyscan_repo')).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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mina-1.0.0 | spec/tasks/default_spec.rb |
mina-1.0.0.rc2 | spec/tasks/default_spec.rb |