Skip to content

Commit

Permalink
[devtools] sync
Browse files Browse the repository at this point in the history
  • Loading branch information
dry-bot committed Sep 26, 2020
1 parent bf6df98 commit 271a5e7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ AllCops:
Exclude:
- spec/support/coverage.rb
- spec/support/warnings.rb
- spec/support/rspec_options.rb
- Gemfile.devtools
- "*.gemspec"

Expand Down Expand Up @@ -153,4 +154,3 @@ Style/TrailingUnderscoreVariable:

Style/MultipleComparison:
Enabled: false

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 271a5e7

Please sign in to comment.