Sha256: 0e2104ae6a753944633bd0230c9ec8275b07694d0bc15dfcf37568082a5f8ea2
Contents?: true
Size: 921 Bytes
Versions: 6
Compression:
Stored size: 921 Bytes
Contents
require 'bundler' Bundler.require require 'test/unit' 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(File.join(File.dirname(__FILE__), '..', 'tmp', 'rails')) 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! Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} def copy_routes routes = File.expand_path(File.join(File.dirname(__FILE__), 'fixtures', 'routes.rb')) destination = File.join(Rails.root, "config") FileUtils.mkdir_p(destination) FileUtils.cp File.expand_path(routes), destination end require 'generators/bootstrap/install/install_generator'
Version data entries
6 entries across 6 versions & 1 rubygems