Permalink
Browse files

Fix the oracle adapter spec

  • Loading branch information...
1 parent 0c7c893 commit cde6c93d3dd1c29b7fb1229b513c0e060d5f334f @jeremyevans committed Nov 26, 2008
Showing with 4 additions and 4 deletions.
  1. +4 −4 spec/adapters/oracle_spec.rb
@@ -71,7 +71,7 @@
{:name => 'def'}
]
- @d.order(:value.DESC).limit(1).to_a.should == [
+ @d.order(:value.desc).limit(1).to_a.should == [
{:name => 'def', :value => 789}
]
@@ -80,7 +80,7 @@
{:name => 'abc', :value => 456}
]
- @d.order(:value.DESC).filter(:name => 'abc').to_a.should == [
+ @d.order(:value.desc).filter(:name => 'abc').to_a.should == [
{:name => 'abc', :value => 456},
{:name => 'abc', :value => 123}
]
@@ -89,7 +89,7 @@
{:name => 'abc', :value => 123}
]
- @d.filter(:name => 'abc').order(:value.DESC).limit(1).to_a.should == [
+ @d.filter(:name => 'abc').order(:value.desc).limit(1).to_a.should == [
{:name => 'abc', :value => 456}
]
@@ -214,7 +214,7 @@
{:id => 4, :title => 'ddd', :cat_name => nil}
]
- @d1.left_outer_join(:categories, :id => :category_id).select(:books__id, :title, :cat_name).order(:books__id.DESC).limit(2, 0).to_a.should == [
+ @d1.left_outer_join(:categories, :id => :category_id).select(:books__id, :title, :cat_name).order(:books__id.desc).limit(2, 0).to_a.should == [
{:id => 4, :title => 'ddd', :cat_name => nil},
{:id => 3, :title => 'ccc', :cat_name => 'rails'}
]

0 comments on commit cde6c93

Please sign in to comment.