提交 63ed6ca9 编写于 作者: J Jeremy Kemper

Add test for e0e3adff

上级 82b0ce9c
......@@ -247,6 +247,12 @@ def test_read_write_boolean_attribute
# puts ""
end
def test_read_overridden_attribute
topic = Topic.new(:title => 'a')
def topic.title() 'b' end
assert_equal 'a', topic[:title]
end
def test_query_attribute_string
[nil, "", " "].each do |value|
assert_equal false, Topic.new(:author_name => value).author_name?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册