# File ../../../../../test/test_template.rb, line 8 def setup @name = nil end
# File ../../../../../test/test_template.rb, line 12 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)) end
# File ../../../../../test/test_template.rb, line 18 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)) end