diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_insert_manager.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_insert_manager.rb b/test/test_insert_manager.rb index f6a76fc20f..b9ee6f76ac 100644 --- a/test/test_insert_manager.rb +++ b/test/test_insert_manager.rb @@ -88,6 +88,13 @@ module Arel INSERT INTO "users" ("id") VALUES (1) } end + + it 'is chainable' do + table = Table.new(:users) + manager = Arel::InsertManager.new + insert_result = manager.insert [[table[:id],1]] + assert_equal manager, insert_result + end end describe 'into' do |