File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff 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
8781end
You can’t perform that action at this time.
0 commit comments