diff options
Diffstat (limited to 'spec/doubles/database.rb')
-rw-r--r-- | spec/doubles/database.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/doubles/database.rb b/spec/doubles/database.rb index c28e9b1a0b..3be11a9164 100644 --- a/spec/doubles/database.rb +++ b/spec/doubles/database.rb @@ -1,3 +1,5 @@ +require 'active_record/connection_adapters/abstract/quoting' + module Fake class Engine def connection @@ -7,7 +9,7 @@ module Fake class Connection include ActiveRecord::ConnectionAdapters::Quoting - + def columns(table_name, comment) { "users" => [ @@ -26,7 +28,7 @@ module Fake def execute(*args) [] end - + def quote_column_name(column_name) "`#{column_name}`" end @@ -38,10 +40,10 @@ module Fake class Column attr_reader :name, :type - + def initialize(name, type) @name = name @type = type end end -end
\ No newline at end of file +end |