Skip to content

Commit 0d92b82

Browse files
committed
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
1 parent a785198 commit 0d92b82

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/spec_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,8 @@ def self.run_all(reporter = nil)
7474
example.run
7575
end
7676
end
77+
78+
# TODO: Remove once https://github.com/alexrothenberg/ammeter/pull/64 is merged
79+
# Work around ammeter's incompatibility with RSpec 4
80+
config.include Ammeter::RSpec::Rails::GeneratorExampleGroup, type: :generator
7781
end

0 commit comments

Comments
 (0)