You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
849 B
Ruby

copy_file "test/test_helper.rb", force: true
copy_file "test/support/capybara.rb"
copy_file "test/support/circleci.rb"
copy_file "test/support/mailer.rb"
copy_file "test/support/rails.rb"
copy_file "test/support/shoulda_matchers.rb"
copy_file "test/system/layout_helper_test.rb"
empty_directory_with_keep_file "test/mailers"
empty_directory_with_keep_file "test/unit"
empty_directory_with_keep_file "test/unit/lib"
empty_directory_with_keep_file "test/unit/lib/tasks"
gsub_file "test/application_system_test_case.rb", /^ driven_by :selenium.*$/, <<~RUBY
driven_by :selenium,
using: (ENV["DISABLE_HEADLESS_CHROME"].present? ? :chrome : :headless_chrome),
screen_size: [1400, 1400] do |options|
options.add_argument("no-sandbox")
end
def setup
Capybara.server = :puma, { Silent: true }
super
end
RUBY