diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-10 11:51:09 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-10 11:51:32 -0700 |
commit | a11dd8ac87cec1e71bf477ca4d3670c5e9531174 (patch) | |
tree | 73c89f9eccb6922135eb4f7405801e3b0fce66b4 /activerecord | |
parent | 2e2ac863d8d32a1868cc0e1a4802ccc2e03301f5 (diff) | |
download | rails-a11dd8ac87cec1e71bf477ca4d3670c5e9531174.tar.gz rails-a11dd8ac87cec1e71bf477ca4d3670c5e9531174.tar.bz2 rails-a11dd8ac87cec1e71bf477ca4d3670c5e9531174.zip |
specific number of spaces should not be enforced
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/method_scoping_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/method_scoping_test.rb b/activerecord/test/cases/method_scoping_test.rb index 312628a3e3..ffe16ffdfa 100644 --- a/activerecord/test/cases/method_scoping_test.rb +++ b/activerecord/test/cases/method_scoping_test.rb @@ -400,7 +400,7 @@ class NestedScopingTest < ActiveRecord::TestCase 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 |