提交 0268b5d8 编写于 作者: A Aaron Patterson

test for regression from a712e08e

上级 67444ba1
......@@ -399,6 +399,12 @@ def test_update_attribute_for_readonly_attribute
assert_raises(ActiveRecord::ActiveRecordError) { minivan.update_attribute(:color, 'black') }
end
def test_string_ids
mv = Minivan.where(:minivan_id => 1234).first_or_initialize
assert mv.new_record?
assert_equal '1234', mv.minivan_id
end
def test_update_attribute_with_one_updated
t = Topic.first
t.update_attribute(:title, 'super_title')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册