Sha256: 2b357a983059b5483d9c97286202628793fdd0afbdcfd7497e505ef678eb58aa

Contents?: true

Size: 877 Bytes

Versions: 2

Compression:

Stored size: 877 Bytes

Contents

class ObjectiveSpecGenerator < Rails::Generator::Base
  
  def initialize(runtime_args, runtime_options = {})      
    puts <<-INFO

You are installing Objective Spec. After this generator has completed, you
will need to add require 'objective_spec' to your spec/spec_helper.rb file
to load the library.

INFO
    super
  end
  
  def manifest
    record do |m|
      m.directory 'spec/mailers'
      m.directory 'spec/matchers'
      m.directory 'spec/spec_helpers'
      m.file      'spec_helpers/common.rb',       'spec/spec_helpers/common.rb'
      m.file      'spec_helpers/model.rb',        'spec/spec_helpers/model.rb'
      m.file      'spec_helpers/view.rb',         'spec/spec_helpers/view.rb'
      m.file      'spec_helpers/controller.rb',   'spec/spec_helpers/controller.rb'
    end
  end
  
protected

  def banner
    "Usage: #{$0} objective_spec"
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
Objective3-objective_spec-0.0.2 generators/objective_spec/objective_spec_generator.rb
Objective3-objective_spec-0.0.3 generators/objective_spec/objective_spec_generator.rb