Sha256: 270c9cb64afa1109fd61b0df62b4ce9d77992147095f311af4a0cf8eebabfad7

Contents?: true

Size: 996 Bytes

Versions: 5

Compression:

Stored size: 996 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'
      m.file      'spec_helpers/shared_examples.rb',    'spec/spec_helpers/shared_examples.rb'
    end
  end
  
protected

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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
Objective3-objective_spec-0.0.4 generators/objective_spec/objective_spec_generator.rb
Objective3-objective_spec-0.1.2 generators/objective_spec/objective_spec_generator.rb
Objective3-objective_spec-0.1.3 generators/objective_spec/objective_spec_generator.rb
Objective3-objective_spec-0.1.4 generators/objective_spec/objective_spec_generator.rb
objective_spec-0.2.0 generators/objective_spec/objective_spec_generator.rb