From 2d820a56008d10fbf35ad724a40ef39a9d9ef6a7 Mon Sep 17 00:00:00 2001 From: Vidar Hokstad Date: Mon, 25 Sep 2023 19:00:56 +0100 Subject: [PATCH] Started bringing tests up to date --- test/form_test.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/form_test.rb b/test/form_test.rb index a480e4c..44f5899 100644 --- a/test/form_test.rb +++ b/test/form_test.rb @@ -43,8 +43,8 @@ describe X11::Form::BaseForm do parent.name = "Parent Form" parent.point = Point.new(0,0) - parent.point.must_be_instance_of Point - parent.name.must_equal "Parent Form" + _(parent.point).must_be_instance_of Point + _(parent.name).must_equal "Parent Form" parent.children = [] parent.children << Child.new @@ -58,9 +58,9 @@ describe X11::Form::BaseForm do socket = MockSocket.new(parent.to_packet) decoded = Parent.from_packet(socket) - decoded.value.must_equal 255 - decoded.name.must_equal "Parent Form" - decoded.point.x.must_equal 23 - decoded.point.y.must_equal 17 + _(decoded.value).must_equal 255 + _(decoded.name).must_equal "Parent Form" + _(decoded.point.x).must_equal 23 + _(decoded.point.y).must_equal 17 end end