aboutsummaryrefslogblamecommitdiffstats
path: root/actionview/test/template/erb/deprecated_erubis_implementation_test.rb
blob: ea088e7cfc9f12df75fd5ff3fdf470ef9a81e7a5 (plain) (tree)
1
2
3
4
5
6
7
8
9

                             






                                                                                                                                                                                   

                                                                                   



         
# frozen_string_literal: true

require "abstract_unit"

module ERBTest
  class DeprecatedErubisImplementationTest < ActionView::TestCase
    test "Erubis implementation is deprecated" do
      assert_deprecated "ActionView::Template::Handlers::Erubis is deprecated and will be removed from Rails 5.2. Switch to ActionView::Template::Handlers::ERB::Erubi instead." do
        assert_equal "ActionView::Template::Handlers::ERB::Erubis", ActionView::Template::Handlers::Erubis.to_s

        assert_nothing_raised { Class.new(ActionView::Template::Handlers::Erubis) }
      end
    end
  end
end