Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 9fedc96

Browse files
committed
Disable outrun in a way that does not generate a warning when rspec/autorun gets loaded.
This is necessary to get the JRuby 9.1.2.0 build passing with the `--dev` flag.
1 parent 6d32a9f commit 9fedc96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/rspec/core_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
# Many files assume this has already been loaded and will have errors if it has not.
5252
'require "rspec/core"',
5353
# Prevent rspec/autorun from trying to run RSpec.
54-
'RSpec::Core::Runner.disable_autorun!'
54+
'def (RSpec::Core::Runner).autorun; end'
5555
], :skip_spec_files => %r{/fake_libs/}, :allowed_loaded_feature_regexps => allowed_loaded_features do
5656
if RUBY_VERSION == '1.8.7'
5757
before(:example, :description => /(issues no warnings when the spec files are loaded|stdlibs)/) do

0 commit comments

Comments
 (0)