Skip to content

Commit

Permalink
fixup! Remove redundant include
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj committed Feb 22, 2021
1 parent a3bebfd commit 452dfb7
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,7 @@ def self.run_all(reporter = nil)
end
end

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

0 comments on commit 452dfb7

Please sign in to comment.