Skip to content

Commit 16cde99

Browse files
authored
Merge pull request rspec#2658 from rspec/make-specs-config-proof
Force --no-profile for output dependant specs
2 parents 5a17c75 + 90b740f commit 16cde99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/support/aruba_support.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def run_command(cmd)
2020

2121
# So that `RSpec.warning` will go to temp_stderr.
2222
allow(::Kernel).to receive(:warn) { |msg| temp_stderr.puts(msg) }
23-
cmd_parts = Shellwords.split(cmd)
23+
cmd_parts = ["--no-profile"] + Shellwords.split(cmd)
2424

2525
handle_current_dir_change do
2626
cd '.' do

spec/support/formatter_support.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def run_rspec_with_formatter(formatter, options={})
2525
spec_order = options[:seed] ? ["--seed", options[:seed].to_s] : ["--order", "defined"]
2626

2727
options = RSpec::Core::ConfigurationOptions.new([
28-
"--format", formatter, *(spec_order + extra_options)
28+
"--no-profile", "--format", formatter, *(spec_order + extra_options)
2929
])
3030

3131
err, out = StringIO.new, StringIO.new

0 commit comments

Comments
 (0)