Sha256: a1295565661e00f099a98cc429e0089083b2569ef62c0df2c549a0c3e0b4c01b

Contents?: true

Size: 315 Bytes

Versions: 5

Compression:

Stored size: 315 Bytes

Contents

require 'test/unit'
$:.unshift File.dirname(__FILE__) + "/../lib/"
require 'model_xml/block_parser'

class BlockParserTest < Test::Unit::TestCase

  def test_simple_parse
    block = Proc.new do
      foo
      bar 3, 4
    end
    assert_equal [:foo, [:bar, 3, 4]], ModelXML::BlockParser.parse(&block)
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
model_xml-1.0.4 test/test_block_parser.rb
model_xml-1.0.3 test/test_block_parser.rb
model_xml-1.0.2 test/test_block_parser.rb
model_xml-1.0.1 test/test_block_parser.rb
model_xml-1.0.0 test/test_block_parser.rb