Class: SpecHarnessGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/spec_harness/spec_harness_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_harnessObject



10
11
12
13
14
15
16
17
# File 'lib/generators/spec_harness/spec_harness_generator.rb', line 10

def generate_harness
  generate 'harness_spec_helper'
  required_spec_types.each do |type|
    generate "harness_spec_helper #{type}"
  end
  generate "harness_guardfile --watch_types=#{watch_types}" if options.guardfile?
  generate 'harness_gems' if options.gems?
end