still doing attr_reader, but closing #25

cattr still missing, but only one occurence. Later.
This commit is contained in:
Torsten Ruger
2019-03-07 11:00:18 +02:00
parent 5ed6a07083
commit 1391667f6c
4 changed files with 30 additions and 33 deletions

View File

@ -32,5 +32,20 @@ module Ruby
def setter
@vool.body.statements.last
end
def test_class
assert_equal Vool::ClassStatement , @vool.class
end
def test_body
assert_equal Vool::Statements , @vool.body.class
end
def test_getter
assert_equal Vool::MethodStatement , getter.class
end
def test_getter_return
assert_equal Vool::ReturnStatement , getter.body.class
end
def test_getter_name
assert_equal :page , getter.name
end
end
end