Skip to content

Commit

Permalink
Add spec/support/rspec_options.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
File Sync committed Sep 21, 2023
1 parent 37071bb commit b81a9da
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spec/support/rspec_options.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
RSpec.configure do |config|
# When no filter given, search and run focused tests
config.filter_run_when_matching :focus

# Disables rspec monkey patches (no reason for their existence tbh)
config.disable_monkey_patching!

# Run ruby in verbose mode
config.warnings = true

# Collect all failing expectations automatically,
# without calling aggregate_failures everywhere
config.define_derived_metadata do |meta|
meta[:aggregate_failures] = true
end
end

0 comments on commit b81a9da

Please sign in to comment.