small rename
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user