Sha256: 9e8239ae0969c4194ef1032a718196a2fbd6b9412cb6a4744899d40af8075696
Contents?: true
Size: 796 Bytes
Versions: 6
Compression:
Stored size: 796 Bytes
Contents
#!/usr/bin/env ruby require 'test/unit' currentPath = File.dirname(__FILE__) require File.join( currentPath, '../../lib/masterview' ) require File.join( currentPath, '../../lib/masterview/directives/import') class TestImport < Test::Unit::TestCase include MasterView::Directives def setup @directives = MasterView::DirectiveSet.new end def test_import import_tag = MasterView::Tag.new(@directives, 'bar', {}, :normal, nil) @directives.directives = [] attr_value = 'foo/bar' @directives << Import.new(attr_value) dcs = @directives.determine_dcs(:stag) dcs.context = import_tag.create_context assert_equal nil, dcs.render dcs = @directives.determine_dcs(:etag) dcs.context = import_tag.create_context assert_equal nil, dcs.render end end
Version data entries
6 entries across 6 versions & 1 rubygems