Methods
Included Modules
- ActiveSupport::Testing::Isolation
- Rack::Test::Methods
Instance Public methods
setup()
Link
# File railties/test/application/asset_debugging_test.rb, line 9 def setup build_app(:initializers => true) app_file "app/assets/javascripts/application.js", "//= require_tree ." app_file "app/assets/javascripts/xmlhr.js", "function f1() { alert(); }" app_file "app/views/posts/index.html.erb", "<%= javascript_include_tag 'application' %>" app_file "config/routes.rb", <<-RUBY AppTemplate::Application.routes.draw do match '/posts', :to => "posts#index" end RUBY app_file "app/controllers/posts_controller.rb", <<-RUBY class PostsController < ActionController::Base end RUBY ENV["RAILS_ENV"] = "production" boot_rails end