Skip to content

Commit

Permalink
Oracle generates different ORDER BY fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
rsim committed Aug 6, 2009
1 parent 3a1cbc5 commit ee654e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activerecord/test/cases/method_scoping_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee654e5

Please sign in to comment.