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

Commit ca39ab1

Browse files
authored
Merge pull request #2949 from eregon/adapt-exit-spec-expected-output-truffleruby
Generalize exit spec to depend less implementation-specific details
2 parents 2ba1b65 + 97553ef commit ca39ab1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/integration/spec_file_load_errors_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@
8989
run_command "--require ./helper_with_exit.rb"
9090
}.to raise_error(SystemExit)
9191
output = normalize_durations(last_cmd_stdout)
92+
# Remove extra line which is only shown on CRuby
93+
output = output.sub("# ./helper_with_exit.rb:1:in `exit'\n", "")
94+
9295
if defined?(JRUBY_VERSION) && !JRUBY_VERSION.empty?
9396
expect(output).to eq unindent(<<-EOS)
9497
@@ -107,7 +110,6 @@
107110
108111
SystemExit:
109112
exit
110-
# ./helper_with_exit.rb:1:in `exit'
111113
# ./helper_with_exit.rb:1#{spec_line_suffix}
112114
EOS
113115
end

0 commit comments

Comments
 (0)