diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-04-23 11:02:39 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2009-04-23 11:02:39 -0300 |
commit | cc80d8df045b1b24e725a40f17002c6c50df5f14 (patch) | |
tree | e64715cea580b7d65daa94d698896a74bef4b796 /spec/doubles | |
parent | aeb09afd73cf188c6aee22bf4dd0f1beb937ac22 (diff) | |
download | rails-cc80d8df045b1b24e725a40f17002c6c50df5f14.tar.gz rails-cc80d8df045b1b24e725a40f17002c6c50df5f14.tar.bz2 rails-cc80d8df045b1b24e725a40f17002c6c50df5f14.zip |
Quoting must be required
Diffstat (limited to 'spec/doubles')
-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 |