File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -501,6 +501,8 @@ def exec_name
501
501
app . await_reload
502
502
503
503
assert_failure %(bin/rails runner 'require "sqlite3"') , stderr : "sqlite3"
504
+
505
+ File . write ( app . gemfile , app . gemfile . read . gsub ( %{# gem 'sqlite3'} , %{gem 'sqlite3'} ) )
504
506
end
505
507
506
508
if RUBY_VERSION >= "2.0.0"
@@ -514,6 +516,11 @@ def exec_name
514
516
app . await_reload
515
517
516
518
assert_failure %(bin/rails runner 'require "sqlite3"') , stderr : "sqlite3"
519
+
520
+ File . write ( app . gems_rb , app . gems_rb . read . gsub ( %{# gem 'sqlite3'} , %{gem 'sqlite3'} ) )
521
+
522
+ FileUtils . mv ( app . gems_rb , app . gemfile )
523
+ FileUtils . mv ( app . gems_locked , app . gemfile_lock )
517
524
end
518
525
end
519
526
@@ -547,6 +554,9 @@ def exec_name
547
554
RUBY
548
555
549
556
assert_success [ %(bin/rails runner 'load Rails.root.join("script.rb")') , timeout : 60 ]
557
+
558
+ FileUtils . mv ( app . gems_rb , app . gemfile )
559
+ FileUtils . mv ( app . gems_locked , app . gemfile_lock )
550
560
end
551
561
end
552
562
You can’t perform that action at this time.
0 commit comments