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)
75
75
end
76
76
end
77
77
78
- # Work around ammeter's incompatibility with RSpec 4
79
78
# 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
87
81
end
You can’t perform that action at this time.
0 commit comments