test/lib/vedeu/launcher_test.rb in vedeu-0.2.11 vs test/lib/vedeu/launcher_test.rb in vedeu-0.2.12

- old
+ new

@@ -1,10 +1,12 @@ 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) @@ -13,12 +15,16 @@ describe '.execute' do it { skip } end describe '#initialize' do - it 'returns an instance of itself' do - Launcher.new.must_be_instance_of(Launcher) - end + 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)