File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,17 @@ module Rails
8
8
class Railtie < ::Rails ::Railtie
9
9
# As of Rails 5.1.0 you can register directories to work with `rake notes`
10
10
require 'rails/source_annotation_extractor'
11
- ::Rails ::SourceAnnotationExtractor ::Annotation . register_directories ( "spec" )
11
+ config . to_prepare do
12
+ ::Rails ::SourceAnnotationExtractor ::Annotation . register_directories ( "spec" )
13
+ end
12
14
generators = config . app_generators
13
15
generators . integration_tool :rspec
14
16
generators . test_framework :rspec
15
17
16
18
generators do
17
- ::Rails ::Generators . hidden_namespaces . reject! { |namespace | namespace . to_s . start_with? ( "rspec" ) }
19
+ config . to_prepare do
20
+ ::Rails ::Generators . hidden_namespaces . reject! { |namespace | namespace . to_s . start_with? ( "rspec" ) }
21
+ end
18
22
end
19
23
20
24
rake_tasks do
You can’t perform that action at this time.
0 commit comments