Skip to content

Commit

Permalink
Handle RSpec 3.13 exiting on syntax error with exit code.
Browse files Browse the repository at this point in the history
  • Loading branch information
doxavore committed Feb 29, 2024
1 parent a40bfda commit 0044199
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/rspec/abq/extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ module Runner
# or the configured failure exit status (1 by default) if specs
# failed.
def run_specs(example_groups)
if Gem::Version.new(RSpec::Core::Version::STRING) >= Gem::Version.new("3.11.0") && RSpec.world.rspec_is_quitting
return exit_code(false)
end

if !!ENV[ABQ_GENERATE_MANIFEST]
# before abq can start workers, it asks for a manifest
RSpec::Abq::Manifest.write_manifest(example_groups, RSpec.configuration.seed, RSpec.configuration.ordering_registry)
Expand Down

0 comments on commit 0044199

Please sign in to comment.