aboutsummaryrefslogtreecommitdiffstats
path: root/test/visitors/test_mysql.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-01-03 16:19:57 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-01-03 16:19:57 -0800
commitf5e09790550fcb7d413d495be25f8fe74a571850 (patch)
treee69d675e1eec65a3c4dc3df5cf63350675bf633a /test/visitors/test_mysql.rb
parentef29263428eb2aa1fdc2b6b020f0d153fd17b5f3 (diff)
downloadrails-f5e09790550fcb7d413d495be25f8fe74a571850.tar.gz
rails-f5e09790550fcb7d413d495be25f8fe74a571850.tar.bz2
rails-f5e09790550fcb7d413d495be25f8fe74a571850.zip
adding better tests surrounding limits in adapter visitors
Diffstat (limited to 'test/visitors/test_mysql.rb')
-rw-r--r--test/visitors/test_mysql.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/visitors/test_mysql.rb b/test/visitors/test_mysql.rb
index 135348580d..c3b79ca667 100644
--- a/test/visitors/test_mysql.rb
+++ b/test/visitors/test_mysql.rb
@@ -19,8 +19,8 @@ module Arel
it "should escape LIMIT" do
sc = Arel::Nodes::UpdateStatement.new
- sc.limit = "omg"
- assert_match(/LIMIT 'omg'/, @visitor.accept(sc))
+ sc.limit = Nodes::Limit.new("omg")
+ assert_equal("UPDATE NULL LIMIT 'omg'", @visitor.accept(sc))
end
it 'uses DUAL for empty from' do