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

Commit 3278d89

Browse files
committed
Set scenario text based on fork support (fixes a JRuby 1.7 build)
1 parent 1e4b354 commit 3278d89

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

features/step_definitions/additional_cli_steps.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@
178178
expected = normalize_durations(expected_output)
179179
actual = normalize_durations(last_process.stdout).sub(/\n+\Z/, '')
180180

181+
if !RSpec::Support::RubyFeatures.fork_supported?
182+
expected.gsub!('runner: :fork', 'runner: :shell')
183+
end
184+
181185
if expected.include?("# ...")
182186
expected_start, expected_end = expected.split("# ...")
183187
expect(actual).to start_with(expected_start).and end_with(expected_end)

0 commit comments

Comments
 (0)