test_helper.rb 361 B

12345678910111213141516
  1. # Configure Rails Envinronment
  2. ENV["RAILS_ENV"] = "test"
  3. require 'rails'
  4. require "rails/test_help"
  5. # For generators
  6. require 'rails/generators/test_case'
  7. def copy_routes
  8. routes = File.expand_path("../support/routes.rb", __FILE__)
  9. destination = File.join(destination_root, "config")
  10. FileUtils.mkdir_p(destination)
  11. FileUtils.cp routes, destination
  12. end