Permalink
Browse files

Oracle generates different ORDER BY fragment

  • Loading branch information...
1 parent 3a1cbc5 commit ee654e54c40ef41cf8bfa4c25324faeb2bf59de0 @rsim rsim committed Mar 22, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 activerecord/test/cases/method_scoping_test.rb
@@ -379,7 +379,8 @@ def test_merged_scoped_find
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

0 comments on commit ee654e5

Please sign in to comment.