mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
73709f7ffa
They existed since initial rails commit by DHH but lost use a long time ago
13 lines
440 B
Ruby
13 lines
440 B
Ruby
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
|