diff options
Diffstat (limited to 'activerecord/test/mixin_test.rb')
-rw-r--r-- | activerecord/test/mixin_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/test/mixin_test.rb b/activerecord/test/mixin_test.rb index df03bcd9a7..a6f759432f 100644 --- a/activerecord/test/mixin_test.rb +++ b/activerecord/test/mixin_test.rb @@ -142,6 +142,15 @@ class ListTest < Test::Unit::TestCase new4.reload assert_equal 4, new4.pos + + new5 = ListMixin.create("parent_id" => 20) + assert_equal 5, new5.pos + + new5.insert_at(1) + assert_equal 1, new5.pos + + new4.reload + assert_equal 5, new4.pos end def test_delete_middle |