Sha256: a68615831963a00306df5251374d0064f0c6770a2bf08f8328cb51f990ff2517
Contents?: true
Size: 737 Bytes
Versions: 2
Compression:
Stored size: 737 Bytes
Contents
module Qunit module Generators class InstallGenerator < ::Rails::Generators::Base source_root File.expand_path('../../templates', __FILE__) desc 'Setup Qunit into test' class_option :coffee, type: :boolean, aliases: '-c', default: false, desc: 'Support for CoffeeScript' def create_setup_files empty_directory 'test/javascripts' empty_directory 'test/stylesheets' if !options[:coffee] template 'test_helper.js', 'test/javascripts/test_helper.js' else template 'test_helper.coffee', 'test/javascripts/test_helper.coffee' end template 'test_helper.css', 'test/stylesheets/test_helper.css' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qunit-rails-0.0.4 | lib/generators/qunit/install_generator.rb |
qunit-rails-0.0.3 | lib/generators/qunit/install_generator.rb |