Sha256: 26ec1af47300c3d5ba11cf521c65908d5ed45081a2756c65a4495a3423e8cb6d
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
require 'test_helper' module Vedeu describe Launcher do let(:described) { Launcher.new } before do Configuration.stubs(:configure) Application.stubs(:start) Kernel.stubs(:exit) Kernel.stubs(:puts) end describe '.execute' do it { skip } end describe '#initialize' do it { return_type_for(described, Launcher) } it { assigns(described, '@argv', []) } it { assigns(described, '@stdin', STDIN) } it { assigns(described, '@stdout', STDOUT) } it { assigns(described, '@stderr', STDERR) } it { assigns(described, '@kernel', Kernel) } it { assigns(described, '@exit_code', 1) } end describe '#execute!' do it 'returns 0 for successful execution' do Launcher.new.execute!.must_equal(0) end context 'when execution causes an uncaught exception' do before { Application.stubs(:start).raises(StandardError) } it 'returns 1 for unsuccessful execution' do skip 'This test is incorrect and fails.' Launcher.new.execute!.must_equal(1) end end end end # Launcher end # Vedeu
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.2.12 | test/lib/vedeu/launcher_test.rb |