File tree 2 files changed +6
-2
lines changed 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ def initialize(app)
9
9
10
10
Packs . all . reject ( &:is_gem? ) . each do |pack |
11
11
app . config . factory_bot . definition_file_paths << pack . relative_path . join ( "spec/factories" ) . to_s
12
+ app . config . factory_bot . definition_file_paths << pack . relative_path . join ( "test/factories" ) . to_s
12
13
end
13
14
end
14
15
end
Original file line number Diff line number Diff line change @@ -5,12 +5,15 @@ module Rails
5
5
class Railtie < ::Rails ::Railtie
6
6
config . before_configuration do |app |
7
7
Integrations ::Rails . new ( app )
8
- Integrations ::FactoryBot . new ( app )
9
-
8
+
10
9
# This is not used within packs-rails. Rather, this allows OTHER tools to
11
10
# hook into packs-rails via ActiveSupport hooks.
12
11
ActiveSupport . run_load_hooks ( :packs_rails , Packs )
13
12
end
13
+
14
+ config . after_initialize do |app |
15
+ Integrations ::FactoryBot . new ( app )
16
+ end
14
17
end
15
18
end
16
19
end
You can’t perform that action at this time.
0 commit comments