Class: Suspenders::JsDriverGenerator
Instance Method Summary
collapse
default_source_root
Methods included from Actions
#action_mailer_asset_host, #action_mailer_host, #configure_environment, #expand_json, #replace_in_file
Instance Method Details
#add_gems ⇒ Object
5
6
7
8
9
10
|
# File 'lib/suspenders/generators/js_driver_generator.rb', line 5
def add_gems
gem 'capybara', '>= 2.15', group: :test
gem 'selenium-webdriver', group: :test
gem 'webdrivers', group: :test
Bundler.with_clean_env { run "bundle install" }
end
|
12
13
14
15
16
17
18
|
# File 'lib/suspenders/generators/js_driver_generator.rb', line 12
def configure_capybara
copy_file "chromedriver.rb", "spec/support/chromedriver.rb"
copy_file(
"capybara_silence_puma.rb",
"spec/support/capybara_silence_puma.rb",
)
end
|