Sha256: 892b9b22136ca6b082ad096d5b9f88771a0bb3f2676f2edbb9c3c98e96741f2c

Contents?: true

Size: 818 Bytes

Versions: 4

Compression:

Stored size: 818 Bytes

Contents

# Having ./support in the load path means Rails will load the generators at
# ./support/generators/**/*_generator.rb and
# ./support/rails/generators/**/*_generator.rb
$LOAD_PATH.push File.join(File.dirname(__FILE__), "support")

require 'bundler'
Bundler.setup

if ENV['USE_RAILS']
  require 'rails'
  require 'rails/generators'
end  

module CustomActions
  def act_upon(file)
    say "Acted upon #{file}."
  end
end

if !defined?(Rails)
  require 'thor/group'
  require File.expand_path('support/generators/test_rails3/test_rails3_generator', File.dirname(__FILE__))
  require File.expand_path('support/generators/question/question_generator', File.dirname(__FILE__))
end

require File.join(File.dirname(__FILE__),"../lib/gen_spec")
GenSpec::Matchers::GenerationMethodMatcher::GENERATION_CLASSES << "CustomActions"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
genspec-0.2.5 spec/spec_helper.rb
genspec-0.2.4 spec/spec_helper.rb
genspec-0.2.3 spec/spec_helper.rb
genspec-0.2.2 spec/spec_helper.rb