diff --git a/lib/suspenders/generators/js_driver_generator.rb b/lib/suspenders/generators/js_driver_generator.rb index a2a89ac..b686c0d 100644 --- a/lib/suspenders/generators/js_driver_generator.rb +++ b/lib/suspenders/generators/js_driver_generator.rb @@ -8,8 +8,12 @@ def add_gems Bundler.with_clean_env { run "bundle install" } end - def configure_chromedriver + def configure_capybara copy_file "chromedriver.rb", "spec/support/chromedriver.rb" + copy_file( + "capybara_silence_puma.rb", + "spec/support/capybara_silence_puma.rb", + ) end end end diff --git a/templates/capybara_silence_puma.rb b/templates/capybara_silence_puma.rb new file mode 100644 index 0000000..e58eba3 --- /dev/null +++ b/templates/capybara_silence_puma.rb @@ -0,0 +1 @@ +Capybara.server = :puma, { Silent: true }