Sha256: 52d04058b2a38e56bfc0923fad8de3f4f46f1b965ef36d724dcc98566a8ae5fc
Contents?: true
Size: 696 Bytes
Versions: 15
Compression:
Stored size: 696 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper.rb' describe Spec::Runner, "#exit?" do describe "when ::Test is absent during loading but present when running exit?" do # believe it or not, this can happen when ActiveSupport is loaded after RSpec is, # since it loads active_support/core_ext/test/unit/assertions.rb which defines # Test::Unit but doesn't actually load test/unit before(:each) do Object.const_set(:Test, Module.new) end it "does not attempt to access the non-loaded test/unit library" do lambda { Spec::Runner.exit? }.should_not raise_error end after(:each) do Object.send(:remove_const, :Test) end end end
Version data entries
15 entries across 15 versions & 5 rubygems