test/test_template.rb in review-2.3.0 vs test/test_template.rb in review-2.4.0

- old
+ new

@@ -1,7 +1,5 @@ -# encoding: utf-8 - require 'test_helper' require 'review/template' class TemplateTest < Test::Unit::TestCase include ReVIEW @@ -11,17 +9,15 @@ end def test_load tmplfile = File.expand_path('./assets/test.xml.erb', File.dirname(__FILE__)) tmpl = ReVIEW::Template.load(tmplfile) - assert_equal("<test>\n<name></name>\n</test>\n",tmpl.result(binding)) + assert_equal("<test>\n<name></name>\n</test>\n", tmpl.result(binding)) end def test_open_with_value tmplfile = File.expand_path('./assets/test.xml.erb', File.dirname(__FILE__)) tmpl = ReVIEW::Template.load(tmplfile) - @name = "test" - assert_equal("<test>\n<name>test</name>\n</test>\n",tmpl.result(binding)) + @name = 'test' + assert_equal("<test>\n<name>test</name>\n</test>\n", tmpl.result(binding)) end end - -