Sha256: 39a4d73406f9decfe0a6a5f3972a4256d4d5642569a9b2cecf333c35ead1754d
Contents?: true
Size: 728 Bytes
Versions: 3
Compression:
Stored size: 728 Bytes
Contents
# -*- encoding: utf-8 -*- require 'webgen/test_helper' require 'webgen/content_processor/haml' class TestHaml < MiniTest::Unit::TestCase include Webgen::TestHelper def test_static_call setup_context cp = Webgen::ContentProcessor::Haml @context.content = "#content\n %h1 Hallo\n = [context.node.alcn, context.ref_node.alcn, context.dest_node.alcn].join" assert_equal("<div id='content'>\n <h1>Hallo</h1>\n /test/test/test\n</div>\n", cp.call(@context).content) @context.content = "#cont\n % = + unknown" assert_error_on_line(Webgen::RenderError, 2) { cp.call(@context) } @context.content = "#cont\n = unknown" assert_error_on_line(NameError, 2) { cp.call(@context) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
webgen-1.0.0.beta3 | test/webgen/content_processor/test_haml.rb |
webgen-1.0.0.beta2 | test/webgen/content_processor/test_haml.rb |
webgen-1.0.0.beta1 | test/webgen/content_processor/test_haml.rb |