test for regression from a712e08ebe21f6d8653a0e6602df2e0f5d40d9ca
This commit is contained in:
parent
67444ba1cb
commit
0268b5d8cd
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user