提交 a11dd8ac 编写于 作者: A Aaron Patterson

specific number of spaces should not be enforced

上级 2e2ac863
...@@ -400,7 +400,7 @@ def test_merged_scoped_find ...@@ -400,7 +400,7 @@ def test_merged_scoped_find
Developer.send(:with_scope, :find => { :conditions => "salary < 100000" }) do Developer.send(:with_scope, :find => { :conditions => "salary < 100000" }) do
Developer.send(:with_scope, :find => { :offset => 1, :order => 'id asc' }) 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 # 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')) assert_equal(poor_jamis, Developer.find(:first, :order => 'id asc'))
end end
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册