aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/arel/unit/relations/relation_spec.rb2
-rw-r--r--spec/doubles/database.rb2
2 files changed, 2 insertions, 2 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
diff --git a/spec/doubles/database.rb b/spec/doubles/database.rb
index cc44596690..c28e9b1a0b 100644
--- a/spec/doubles/database.rb
+++ b/spec/doubles/database.rb
@@ -23,7 +23,7 @@ module Fake
}[table_name]
end
- def select_all(*args)
+ def execute(*args)
[]
end