diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-03-21 21:23:48 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-03-21 21:23:48 -0700 |
commit | aca58b2360f7459623499018e0a19febac926267 (patch) | |
tree | 9e35aea1004538c8864318beb05b728d131f961b /test | |
parent | 83d045d2d8881e4310f0f54376a5e04d395f3c7a (diff) | |
download | rails-aca58b2360f7459623499018e0a19febac926267.tar.gz rails-aca58b2360f7459623499018e0a19febac926267.tar.bz2 rails-aca58b2360f7459623499018e0a19febac926267.zip |
adding create_insert method
Diffstat (limited to 'test')
-rw-r--r-- | test/test_select_manager.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_select_manager.rb b/test/test_select_manager.rb index 410fe38e2a..3eec73a1f0 100644 --- a/test/test_select_manager.rb +++ b/test/test_select_manager.rb @@ -483,6 +483,12 @@ module Arel assert_equal children, clause.children end + it 'should create insert managers' do + relation = Arel::SelectManager.new Table.engine + insert = relation.create_insert + assert_kind_of Arel::InsertManager, insert + end + it 'should create join nodes' do relation = Arel::SelectManager.new Table.engine join = relation.create_join 'foo', 'bar' |