diff options
Diffstat (limited to 'activerecord/test/cases/custom_properties_test.rb')
-rw-r--r-- | activerecord/test/cases/custom_properties_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/custom_properties_test.rb b/activerecord/test/cases/custom_properties_test.rb index 9910e4042c..397a8e0692 100644 --- a/activerecord/test/cases/custom_properties_test.rb +++ b/activerecord/test/cases/custom_properties_test.rb @@ -79,5 +79,10 @@ module ActiveRecord assert_equal 4.4, data.overloaded_float end + + def test_overloading_properties_does_not_change_column_order + column_names = OverloadedType.column_names + assert_equal %w(id overloaded_float unoverloaded_float overloaded_string_with_limit non_existent_decimal), column_names + end end end |