Sha256: c5bfe0f11d729c59c2acc9b6764c0c92ccae803f0a78b7cda85d7526c166c5fd
Contents?: true
Size: 923 Bytes
Versions: 2
Compression:
Stored size: 923 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-generators-2.0.1 | test/test_helper.rb |
bootstrap-generators-2.0.0 | test/test_helper.rb |