From bf9d8100f299e5f62545586970e2830b092d49e5 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 27 Aug 2022 17:43:19 +0200 Subject: [PATCH] Fixed ant Ruby unit test --- testdata/ruby/antTest.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testdata/ruby/antTest.rb b/testdata/ruby/antTest.rb index ff88d4ae4..357cebe98 100644 --- a/testdata/ruby/antTest.rb +++ b/testdata/ruby/antTest.rb @@ -568,8 +568,9 @@ class Ant_TestClass < TestBase def test_5 lv = RBA::LayoutView::new + lv.set_config("ruler-templates", "mode=normal,title=Ruler,category=_ruler,fmt=$D,fmt_x=$X,fmt_y=$Y,position=auto,xalign=auto,yalign=auto,xlabel_xalign=auto,xlabel_yalign=auto,ylabel_xalign=auto,ylabel_yalign=auto,style=ruler,outline=diag,snap=true,angle_constraint=global") tpl = lv.annotation_templates - assert_equal(tpl.size > 0, true) # at least one default template + assert_equal(tpl.size, 1) lv.unregister_annotation_templates("")