Sha256: 46914d4f51582336063ce8f291092ac33cc21da76cfcf6239ff3c16bb3c683cc
Contents?: true
Size: 790 Bytes
Versions: 5
Compression:
Stored size: 790 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
masterview-0.1.0 | test/import_test.rb |
masterview-0.1.1 | test/import_test.rb |
masterview-0.1.2 | test/import_test.rb |
masterview-0.1.3 | test/import_test.rb |
masterview-0.1.5 | test/import_test.rb |