fix boot to include blocks correctly

This commit is contained in:
Torsten Ruger
2018-07-27 10:48:45 +03:00
parent 4839e0d245
commit e1d5592c55
3 changed files with 19 additions and 4 deletions

View File

@ -99,5 +99,12 @@ module Parfait
method = Parfait::CallableMethod.new( @obj , :other , @args , @frame)
assert @method != method
end
def test_create_block
@block = @method.create_block(@args , @frame)
assert_equal Block , @block.class
end
def test_has_block
assert_equal 7 , @method.get_type.variable_index( :blocks )
end
end
end