aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/test/template/template_error_test.rb
blob: 91424daeed03cbe797b361f6ce09580d821e31aa (plain) (tree)
1
2
3
4
5
6
7
8
9



                                                 
                                                                              



                                          
                                                                              


                                                                          
require "abstract_unit"

class TemplateErrorTest < ActiveSupport::TestCase
  def test_provides_original_message
    error = ActionView::Template::Error.new("test", Exception.new("original"))
    assert_equal "original", error.message
  end

  def test_provides_useful_inspect
    error = ActionView::Template::Error.new("test", Exception.new("original"))
    assert_equal "#<ActionView::Template::Error: original>", error.inspect
  end
end