Skip to content

Commit f4736f6

Browse files
committed
[WIP]
1 parent 2a2c065 commit f4736f6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

example_app_generator/generate_stuff.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,16 @@ def using_source_path(path)
167167
gsub_file 'spec/controllers/uploads_controller_spec.rb',
168168
'skip("Add a hash of attributes valid for your model")',
169169
'{}'
170+
171+
%w[
172+
~/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/pry-0.14.1/lib
173+
~/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/coderay-1.1.3/lib
174+
~/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/method_source-1.0.0/lib
175+
].each { $LOAD_PATH.unshift(File.expand_path(_1)) }
176+
177+
if Rails.version >= '7.0.0'
178+
# Some gems (ActionMailBox, ActionCable, etc.) are not used when running `example_app_generator/spec/verify_mailer_preview_path_spec.rb`, so `eager_load` must be false.
179+
gsub_file "config/environments/test.rb", 'ENV["CI"].present?', "false"
180+
end
181+
170182
final_tasks

0 commit comments

Comments
 (0)