Permalink
Browse files

specific number of spaces should not be enforced

  • Loading branch information...
1 parent 2ef6069 commit 465dd6f0e94606e5ada15a10efc952d8038a82d1 @tenderlove tenderlove committed Sep 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/method_scoping_test.rb
@@ -400,7 +400,7 @@ def test_merged_scoped_find
Developer.send(:with_scope, :find => { :conditions => "salary < 100000" }) do
Developer.send(:with_scope, :find => { :offset => 1, :order => '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_sql(/ORDER BY\s+id asc/) do
assert_equal(poor_jamis, Developer.find(:first, :order => 'id asc'))
end
end

0 comments on commit 465dd6f

Please sign in to comment.