Sha256: 0375dd1f7d0e966df4d4d5558cc203d93138087018bf3698cd74f4110540bfd4
Contents?: true
Size: 644 Bytes
Versions: 4
Compression:
Stored size: 644 Bytes
Contents
# encoding: utf-8 require 'test_helper' require 'review/template' class TemplateTest < Test::Unit::TestCase include ReVIEW def setup @name = nil 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)) 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)) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
review-2.3.0 | test/test_template.rb |
review-2.2.0 | test/test_template.rb |
review-2.1.0 | test/test_template.rb |
review-2.0.0 | test/test_template.rb |