Sha256: e1a1361650627d53afc5192f21b46ae6340850a19c9e4c2f64df0a88bd913910

Contents?: true

Size: 494 Bytes

Versions: 2

Compression:

Stored size: 494 Bytes

Contents

# Setup for generator tests
require 'rails/all'
require 'rails/generators'
require 'rails/generators/test_case'

class TestApp < Rails::Application
  config.root = File.dirname(__FILE__)
end
Rails.application = TestApp

module Rails
  def self.root
    @root ||= File.expand_path("../../tmp/rails", __FILE__)
  end
end
Rails.application.config.root = Rails.root

# Call configure to load the settings from
# Rails.application.config.generators to Rails::Generators
Rails::Generators.configure!

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
mootools-rails-0.1 spec/spec_helper.rb
jquery-rails-0.2.3 spec/spec_helper.rb