Sha256: 0765efdb1dfd970cf2943de770b4bcc9737fcc7e4eaa4bb9a1f2fc665ac44c46
Contents?: true
Size: 1.29 KB
Versions: 15
Compression:
Stored size: 1.29 KB
Contents
require 'test_helper' module Vedeu describe Launcher do let(:described) { Vedeu::Launcher } let(:instance) { described.new } before do Configuration.stubs(:configure)# .returns(test_configuration) Application.stubs(:start) Kernel.stubs(:exit) Kernel.stubs(:puts) end describe '#initialize' do it { instance.must_be_instance_of(described) } it { instance.instance_variable_get('@argv').must_equal([]) } it { instance.instance_variable_get('@stdin').must_equal(STDIN) } it { instance.instance_variable_get('@stdout').must_equal(STDOUT) } it { instance.instance_variable_get('@stderr').must_equal(STDERR) } it { instance.instance_variable_get('@kernel').must_equal(Kernel) } it { instance.instance_variable_get('@exit_code').must_equal(1) } end describe '#debug_execute!' do subject { instance.debug_execute! } context 'when debugging is enabled in the configuration' do # it { skip } end context 'when debugging is not enabled in the configuration' do # it { skip } end end describe '#execute!' do subject { instance.execute! } it 'returns 0 for successful execution' do subject.must_equal(0) end end end # Launcher end # Vedeu
Version data entries
15 entries across 15 versions & 1 rubygems