diff options
author | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2009-03-23 00:17:05 +0200 |
---|---|---|
committer | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2009-08-06 23:40:59 +0300 |
commit | ee654e54c40ef41cf8bfa4c25324faeb2bf59de0 (patch) | |
tree | 836ccb6f589c15d4b7affa8da967e3e2eb31764f /activerecord/test | |
parent | 3a1cbc5c3b3bcb2de4be6e4469bb87b99759dc59 (diff) | |
download | rails-ee654e54c40ef41cf8bfa4c25324faeb2bf59de0.tar.gz rails-ee654e54c40ef41cf8bfa4c25324faeb2bf59de0.tar.bz2 rails-ee654e54c40ef41cf8bfa4c25324faeb2bf59de0.zip |
Oracle generates different ORDER BY fragment
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/method_scoping_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/cases/method_scoping_test.rb b/activerecord/test/cases/method_scoping_test.rb index d8246f49b8..35f7bc5443 100644 --- a/activerecord/test/cases/method_scoping_test.rb +++ b/activerecord/test/cases/method_scoping_test.rb @@ -379,7 +379,8 @@ class NestedScopingTest < ActiveRecord::TestCase poor_jamis = developers(:poor_jamis) Developer.with_scope(:find => { :conditions => "salary < 100000" }) do Developer.with_scope(:find => { :offset => 1, :order => 'id asc' }) do - assert_sql /ORDER BY id asc / do + # Oracle adapter does not generated space after asc therefore trailing space removed from regex + assert_sql /ORDER BY id asc/ do assert_equal(poor_jamis, Developer.find(:first, :order => 'id asc')) end end |