1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test/generators/generators_test_helper.rb
2010-01-03 17:14:49 +01:00

26 lines
No EOL
586 B
Ruby

# TODO: Fix this RAILS_ENV stuff
RAILS_ENV = 'test' unless defined?(RAILS_ENV)
require 'abstract_unit'
module Rails
def self.root
@root ||= File.expand_path(File.join(File.dirname(__FILE__), '..', 'fixtures'))
end
end
Rails.application.config.root = Rails.root
require 'rails/generators'
require 'rails/generators/test_case'
require 'rubygems'
require 'active_record'
require 'action_dispatch'
class GeneratorsTestCase < Rails::Generators::TestCase
destination File.join(Rails.root, "tmp")
setup :prepare_destination
def test_truth
# Don't cry test unit
end
end