fix parfait test

This commit is contained in:
Torsten Ruger 2015-10-14 21:36:51 +03:00
parent f105b1eb3c
commit 0c8be466df

View File

@ -4,7 +4,7 @@ class TestMethod < MiniTest::Test
def setup def setup
obj = Virtual.machine.boot.space.get_class_by_name(:Object) obj = Virtual.machine.boot.space.get_class_by_name(:Object)
args = Virtual.new_list [ Parfait::Variable.new(:int , :bar )] args = Virtual.new_list [ Parfait::Variable.new(:Integer , :bar )]
@method = ::Parfait::Method.new obj , :foo , args @method = ::Parfait::Method.new obj , :foo , args
end end
@ -18,6 +18,6 @@ class TestMethod < MiniTest::Test
assert_equal :bar , @method.arguments.first.name assert_equal :bar , @method.arguments.first.name
end end
def test_has_arg def test_has_arg
assert_equal 1 , @method.has_arg(:bar) assert_equal 1 , @method.has_arg(:bar)
end end
end end