From 0d92b829747e427a44c2c65661790db2b6b36641 Mon Sep 17 00:00:00 2001 From: Phil Pirozhkov Date: Sun, 21 Feb 2021 00:56:35 +0300 Subject: [PATCH] Work around ammeter' incompatibility with RSpec 4 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 --- spec/spec_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6d3c5a3f64..44f93e3f78 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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