Sha256: fdd2275c2016aa3aab6bfe341ac78ed5b11f40c579c422fd5a22e37435709d30

Contents?: true

Size: 512 Bytes

Versions: 4

Compression:

Stored size: 512 Bytes

Contents

require "rails/generators"

module Suspenders
  class JsDriverGenerator < Rails::Generators::Base
    source_root File.expand_path(
      File.join("..", "..", "..", "templates"),
      File.dirname(__FILE__),
    )

    def add_gems
      gem 'capybara', '>= 2.15', '< 4.0', group: :test
      gem 'selenium-webdriver', 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

4 entries across 4 versions & 1 rubygems

Version Path
welaika-suspenders-2.29.0 lib/suspenders/generators/js_driver_generator.rb
welaika-suspenders-2.29.0.alpha.3 lib/suspenders/generators/js_driver_generator.rb
welaika-suspenders-2.29.0.alpha.2 lib/suspenders/generators/js_driver_generator.rb
welaika-suspenders-2.29.0.alpha.1 lib/suspenders/generators/js_driver_generator.rb