From 4a6822d5e416f2e687d32a14ff98c7b5c815369c Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Sun, 27 Apr 2008 18:11:36 -0700 Subject: results of a select query are a hash indexed by attribute rather than string --- spec/arel/unit/relations/relation_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/arel/unit') 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 -- cgit v1.2.3