class ApplicationTests::AssetDebuggingTest

Public Instance Methods

get(*) click to toggle source

FIXME: shush Sass warning spam, not relevant to testing Railties

Calls superclass method TestHelpers::Rack#get
# File railties/test/application/asset_debugging_test.rb, line 40
def get(*)
  Kernel.silence_warnings { super }
end
setup() click to toggle source
# File railties/test/application/asset_debugging_test.rb, line 11
    def setup
      # FIXME: shush Sass warning spam, not relevant to testing Railties
      Kernel.silence_warnings do
        build_app(initializers: true)
      end

      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
        Quails.application.routes.draw do
          get '/posts', to: "posts#index"
        end
      RUBY

      app_file "app/controllers/posts_controller.rb", <<-RUBY
        class PostsController < ActionController::Base
        end
      RUBY

      ENV["RAILS_ENV"] = "production"
    end
teardown() click to toggle source
# File railties/test/application/asset_debugging_test.rb, line 35
def teardown
  teardown_app
end