Sha256: c79932df171c1e861a83ae02ec7f6dfd1c49dc67b2c8a37c0391432fe42e15e7
Contents?: true
Size: 987 Bytes
Versions: 37
Compression:
Stored size: 987 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/../../example_helper") describe Micronaut::Runner do before do @runner = Micronaut::Runner.new end describe '#configuration' do it "should return Micronaut.configuration" do @runner.configuration.should == Micronaut.configuration end end describe '#formatter' do it 'should return the configured formatter' do @runner.formatter.should == Micronaut.configuration.formatter end end describe 'Micronaut::Runner.at_exit' do it 'should set an at_exit hook if none is already set' do Micronaut::Runner.stubs(:installed_at_exit?).returns(false) Micronaut::Runner.expects(:at_exit) Micronaut::Runner.autorun end it 'should not set the at_exit hook if it is already set' do Micronaut::Runner.stubs(:installed_at_exit?).returns(true) Micronaut::Runner.expects(:at_exit).never Micronaut::Runner.autorun end end end
Version data entries
37 entries across 37 versions & 2 rubygems