From 28eecd934b91618b1334acce859c26c1a380f51a Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Tue, 2 Sep 2014 21:07:41 +0200 Subject: Ship with rails-html-sanitizer instead. --- railties/test/application/default_stack_test.rb | 41 ------------------------- 1 file changed, 41 deletions(-) delete mode 100644 railties/test/application/default_stack_test.rb (limited to 'railties/test') diff --git a/railties/test/application/default_stack_test.rb b/railties/test/application/default_stack_test.rb deleted file mode 100644 index 4778cdd74c..0000000000 --- a/railties/test/application/default_stack_test.rb +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -require 'isolation/abstract_unit' -require 'rack/test' -require 'active_support/json' - -module ApplicationTests - class DefaultStackTest < ActiveSupport::TestCase - include ActiveSupport::Testing::Isolation - include Rack::Test::Methods - - def setup - build_app(initializers: true) - boot_rails - end - - def teardown - teardown_app - end - - test "the sanitizer helper" do - controller :foo, <<-RUBY - class FooController < ApplicationController - def index - render text: self.class.helpers.class.sanitizer_vendor - end - end - RUBY - - app_file 'config/routes.rb', <<-RUBY - Rails.application.routes.draw do - get ':controller(/:action)' - end - RUBY - - require "#{app_path}/config/environment" - - get "/foo" - assert_equal 'Rails::Html::Sanitizer', last_response.body.strip - end - end -end -- cgit v1.2.3