Sha256: a9e7a3990f3954096e1127bbb799eac3a8f53c9d1faa011485b956d7a3412a76
Contents?: true
Size: 597 Bytes
Versions: 6
Compression:
Stored size: 597 Bytes
Contents
# -*- encoding: utf-8 -*- require 'webgen/test_helper' require 'webgen/content_processor/ruby' class TestBuilder < 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 = "5+5\n+=+6\n" assert_error_on_line(SyntaxError, 2) { cp.call(@context) } @context.content = "5+5\nunknown\n++6" assert_error_on_line(NameError, 2) { cp.call(@context) } end end
Version data entries
6 entries across 6 versions & 1 rubygems