diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/arel/crud_spec.rb | 5 | ||||
-rw-r--r-- | spec/arel/select_manager_spec.rb | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/spec/arel/crud_spec.rb b/spec/arel/crud_spec.rb index cc58b8dbce..5c03857284 100644 --- a/spec/arel/crud_spec.rb +++ b/spec/arel/crud_spec.rb @@ -1,10 +1,13 @@ module Arel class FakeCrudder < SelectManager class FakeEngine - attr_reader :calls + attr_reader :calls, :connection_pool, :spec, :config def initialize @calls = [] + @connection_pool = self + @spec = self + @config = { :adapter => 'sqlite3' } end def connection; self end diff --git a/spec/arel/select_manager_spec.rb b/spec/arel/select_manager_spec.rb index e309286eba..f301e3afd0 100644 --- a/spec/arel/select_manager_spec.rb +++ b/spec/arel/select_manager_spec.rb @@ -3,10 +3,16 @@ require 'spec_helper' module Arel class EngineProxy attr_reader :executed + attr_reader :connection_pool + attr_reader :spec + attr_reader :config def initialize engine @engine = engine @executed = [] + @connection_pool = self + @spec = self + @config = { :adapter => 'sqlite3' } end def connection |