small rename

This commit is contained in:
Torsten Ruger
2016-12-19 14:16:10 +02:00
parent 107e3e6d58
commit af9fed863f
5 changed files with 8 additions and 8 deletions

View File

@ -8,7 +8,7 @@ class TestMethodApi < MiniTest::Test
end
def foo_method for_class = :Try
args = Parfait::Type.new_for_hash( @try , { bar: :Integer})
args = Parfait::Type.for_hash( @try , { bar: :Integer})
::Parfait::TypedMethod.new @space.get_class_by_name(for_class).instance_type , :foo , args
end
@ -33,7 +33,7 @@ class TestMethodApi < MiniTest::Test
end
end
def test_create_method
args = Parfait::Type.new_for_hash( @try , { bar: :Integer})
args = Parfait::Type.for_hash( @try , { bar: :Integer})
@try.create_instance_method :bar, args
assert_equal ":bar" , @try.method_names.inspect
end