test/unit/ut_16_parser.rb in ruote-2.1.10 vs test/unit/ut_16_parser.rb in ruote-2.1.11

- old
+ new

@@ -137,7 +137,27 @@ ["define", {}, [["sequence", {}, [["alpha", {}, []], ["set", {"field"=>"f", "value"=>"v"}, []], ["bravo", {}, []]]]]], Ruote::Parser.parse(fn)) FileUtils.rm(fn) end + + # Make sure that ruby method names like 'freeze' or 'clone' can be used + # in process definitions. + # + def test_ruby_blank_slate + + t = Ruote::Parser.parse(%{ + Ruote.define do + freeze + clone + untrust + end + }) + + assert_equal( + [ 'define', {}, [ + [ 'freeze', {}, [] ], [ 'clone', {}, [] ], [ 'untrust', {}, [] ] + ] ], + t) + end end