Sha256: 9b7e88ce4901692f1820cdf406d21cb8a13584bd38f9d0d439bd7ad81bcde138
Contents?: true
Size: 842 Bytes
Versions: 2
Compression:
Stored size: 842 Bytes
Contents
require "rails/generators" require_relative "generator_helper" include GeneratorHelper module ReactOnRails module Generators class DevTestsGenerator < Rails::Generators::Base Rails::Generators.hide_namespace(namespace) source_root(File.expand_path("../templates/dev_tests", __FILE__)) def copy_rspec_files %w(spec/spec_helper.rb spec/rails_helper.rb spec/simplecov_helper.rb .rspec).each { |file| copy_file(file) } end def copy_tests %w(spec/features/hello_world_spec.rb).each { |file| copy_file(file) } end def add_test_related_gems_to_gemfile gem("rspec-rails", group: :test) gem("capybara", group: :test) gem("selenium-webdriver", group: :test) gem("coveralls", require: false) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
react_on_rails-1.2.2 | lib/generators/react_on_rails/dev_tests_generator.rb |
react_on_rails-1.2.1 | lib/generators/react_on_rails/dev_tests_generator.rb |