Sha256: 44f4bd158098df332b33c2c8285082155303bf0bdd1ad6266f411e2c6974ffa4
Contents?: true
Size: 1.03 KB
Versions: 13
Compression:
Stored size: 1.03 KB
Contents
require 'spec_helper' RSpec.describe 'default', type: :rake do describe 'ssh_keyscan_repo' do it 'scans ssh' do Mina::Configuration.instance.set(:repository, 'git@github.com/exapmle') 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
13 entries across 13 versions & 1 rubygems