Sha256: 7106984be34d2ea303aff60bf7efa637d9c01d8220ada36add850d584d2615f0
Contents?: true
Size: 618 Bytes
Versions: 3
Compression:
Stored size: 618 Bytes
Contents
# -*- encoding: utf-8 -*- require 'webgen/test_helper' require 'webgen/content_processor/ruby' class TestContentProcessorRuby < Minitest::Test include Webgen::TestHelper def test_static_call setup_context cp = Webgen::ContentProcessor::Ruby @context.content = "context.content = context.dest_node.alcn" assert_equal(@context.dest_node.alcn, cp.call(@context).content) @context.content = "x = 5+5\n+=+6\n" assert_error_on_line(SyntaxError, 2) { cp.call(@context) } @context.content = "x = 5+5\nunknown\n++6" 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.7.3 | test/webgen/content_processor/test_ruby.rb |
webgen-1.7.2 | test/webgen/content_processor/test_ruby.rb |
webgen-1.7.1 | test/webgen/content_processor/test_ruby.rb |