Skip to content

Commit

Permalink
Work around ammeter' incompatibility with RSpec 4
Browse files Browse the repository at this point in the history
See:

- rspec/rspec-core#1821
- rspec/rspec-core#2874
- alexrothenberg/ammeter#64
- example failure (Ammeter::RSpec::Rails::GeneratorExampleGroup that defines destination is not included) https://github.com/rspec/rspec-core/pull/2874/checks?check_run_id=1942170588

Alternative to #2468
  • Loading branch information
pirj committed Feb 22, 2021
1 parent a785198 commit 0d92b82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,8 @@ def self.run_all(reporter = nil)
example.run
end
end

# TODO: Remove once https://github.com/alexrothenberg/ammeter/pull/64 is merged
# Work around ammeter's incompatibility with RSpec 4
config.include Ammeter::RSpec::Rails::GeneratorExampleGroup, type: :generator
end

0 comments on commit 0d92b82

Please sign in to comment.