aboutsummaryrefslogtreecommitdiffstats
path: root/spec/arel
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-04-27 18:11:36 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-04-27 18:11:36 -0700
commit4a6822d5e416f2e687d32a14ff98c7b5c815369c (patch)
tree74288a02f1248bb486c8edee073533895d25f34c /spec/arel
parent9567f8e4e87f95929f331a2d5eb35bce952eac86 (diff)
downloadrails-4a6822d5e416f2e687d32a14ff98c7b5c815369c.tar.gz
rails-4a6822d5e416f2e687d32a14ff98c7b5c815369c.tar.bz2
rails-4a6822d5e416f2e687d32a14ff98c7b5c815369c.zip
results of a select query are a hash indexed by attribute rather than string
Diffstat (limited to 'spec/arel')
-rw-r--r--spec/arel/unit/relations/relation_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/arel/unit/relations/relation_spec.rb b/spec/arel/unit/relations/relation_spec.rb
index 46c3ee250d..d6874a1554 100644
--- a/spec/arel/unit/relations/relation_spec.rb
+++ b/spec/arel/unit/relations/relation_spec.rb
@@ -207,7 +207,7 @@ module Arel
describe '#call' do
it 'executes a select_all on the connection' do
- mock(connection = Object.new).select_all(@relation.to_sql)
+ mock(connection = Object.new).execute(@relation.to_sql) { [] }
@relation.call(connection)
end
end