Sha256: 2f4a995382d406b666cdb6f37bf1c1b9b0c5a671d42ac28157743f3021f73acd
Contents?: true
Size: 768 Bytes
Versions: 4
Compression:
Stored size: 768 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class PageContextTest < Test::Unit::TestCase fixtures :pages, :page_parts, :layouts, :snippets, :users test_helper :pages def setup @page = pages(:radius) @context = PageContext.new(@page) @parser = Radius::Parser.new(@context, :tag_prefix => 'r') end def test_initialize assert_equal(@page, @context.page) end def test_tag_missing assert_raises(StandardTags::TagError) { @parser.parse '<r:missing />' } def @context.testing?() false end assert_parse_output_match "undefined tag `missing'", '<r:missing />' end private def assert_parse_output_match(regexp, input) output = @parser.parse(input) assert_match regexp, output end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
radiant-0.6.0 | test/unit/page_context_test.rb |
radiant-0.6.1 | test/unit/page_context_test.rb |
radiant-0.6.2 | test/unit/page_context_test.rb |
radiant-0.6.3 | test/unit/page_context_test.rb |