mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Oracle generates different ORDER BY fragment
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user