Sha256: 1d95f26855c7efa65c90909d15a471ac7e3822cc4e50db53c5c4f1efb48e5821

Contents?: true

Size: 373 Bytes

Versions: 2

Compression:

Stored size: 373 Bytes

Contents

require_relative "base"

module Suspenders
  class JsDriverGenerator < Generators::Base
    def add_gems
      gem "capybara-selenium", group: :test
      gem "chromedriver-helper", group: :test
      Bundler.with_clean_env { run "bundle install" }
    end

    def configure_chromedriver
      copy_file "chromedriver.rb", "spec/support/chromedriver.rb"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
suspenders-1.52.0 lib/suspenders/generators/js_driver_generator.rb
suspenders-1.51.0 lib/suspenders/generators/js_driver_generator.rb