test/support/generator_test_support.rb in ember-appkit-rails-0.3.2 vs test/support/generator_test_support.rb in ember-appkit-rails-0.4.0

- old
+ new

@@ -81,6 +81,17 @@ source = File.expand_path("../../dummy/config/application.rb", __FILE__) destination = File.join(destination_root, path) FileUtils.mkdir_p(destination) copy_file source, File.join(destination, 'application.rb') end + + def copy_routes + copy_routes_file("../../dummy/config/routes.rb") + end + + def copy_routes_file(routes_destination) + routes = File.expand_path(routes_destination, __FILE__) + destination = File.join(destination_root, 'config') + FileUtils.mkdir_p(destination) + FileUtils.cp routes, File.join(destination, 'routes.rb') + end end