more dubious test hacking

This commit is contained in:
Torsten Ruger
2015-11-02 17:32:06 +02:00
parent 0094a89707
commit 23e09b7149
2 changed files with 5 additions and 4 deletions

View File

@ -8,7 +8,8 @@ class TestObject < MiniTest::Test
def test_object_create
# another test sometime adds a field variable. Maybe should reboot ?
res = @object.get_layout.variable_index(:runner) ? 2 : 1
res = 1
[:boo1 , :boo2 , :runner].each { |v| res += 1 if @object.get_layout.variable_index(v) }
assert_equal res , @object.get_layout.instance_length , @object.get_layout.inspect
end