Skip to content

Commit 452dfb7

Browse files
committed
fixup! Remove redundant include
1 parent a3bebfd commit 452dfb7

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

spec/spec_helper.rb

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,7 @@ def self.run_all(reporter = nil)
7575
end
7676
end
7777

78-
# Work around ammeter's incompatibility with RSpec 4
7978
# TODO: Remove once https://github.com/alexrothenberg/ammeter/pull/64 is merged
80-
generator_path_regex = Regexp.compile(%w[spec generators].join('[\\\/]') + '[\\\/]')
81-
config.include Ammeter::RSpec::Rails::GeneratorExampleGroup,
82-
type: :generator
83-
config.include Ammeter::RSpec::Rails::GeneratorExampleGroup,
84-
file_path: lambda { |file_path, metadata|
85-
metadata[:type].nil? && generator_path_regex =~ file_path
86-
}
79+
# Work around ammeter's incompatibility with RSpec 4
80+
config.include Ammeter::RSpec::Rails::GeneratorExampleGroup, type: :generator
8781
end

0 commit comments

Comments
 (0)