Sha256: 5b46dbc2a588e7bb742488d60dfb54e242e37f7231de1c3dec07791658bb9ed2
Contents?: true
Size: 640 Bytes
Versions: 14
Compression:
Stored size: 640 Bytes
Contents
module CypressOnRails class UpdateGenerator < Rails::Generators::Base class_option :cypress_folder, type: :string, default: 'spec/cypress' source_root File.expand_path('../templates', __FILE__) def update_generated_files template "config/initializers/cypress_on_rails.rb.erb", "config/initializers/cypress_on_rails.rb" copy_file "spec/cypress/cypress_helper.rb", "#{options.cypress_folder}/cypress_helper.rb" copy_file "spec/cypress/support/on-rails.js", "#{options.cypress_folder}/support/on-rails.js" directory 'spec/cypress/app_commands', "#{options.cypress_folder}/app_commands" end end end
Version data entries
14 entries across 14 versions & 1 rubygems