aboutsummaryrefslogtreecommitdiffstats
path: root/spec/doubles
diff options
context:
space:
mode:
authorBryan Helmkamp <bryan@brynary.com>2009-05-16 21:13:32 -0400
committerBryan Helmkamp <bryan@brynary.com>2009-05-17 13:17:07 -0400
commit49d119ae84bbb7cd180ca855cf48997dc731554c (patch)
tree3bae397d3e2b5ee76bd89a87ccbf421d814fec74 /spec/doubles
parent4096d192a1e7cdf0115f5a4cf33d102b176cb8cd (diff)
downloadrails-49d119ae84bbb7cd180ca855cf48997dc731554c.tar.gz
rails-49d119ae84bbb7cd180ca855cf48997dc731554c.tar.bz2
rails-49d119ae84bbb7cd180ca855cf48997dc731554c.zip
Adding spec:mysql and spec:sqlite3 tasks
Diffstat (limited to 'spec/doubles')
-rw-r--r--spec/doubles/database.rb51
1 files changed, 0 insertions, 51 deletions
diff --git a/spec/doubles/database.rb b/spec/doubles/database.rb
deleted file mode 100644
index f8a4b38e17..0000000000
--- a/spec/doubles/database.rb
+++ /dev/null
@@ -1,51 +0,0 @@
-module Fake
- class Engine
- def connection
- @conn ||= Connection.new
- end
- end
-
- class Connection
- include ActiveRecord::ConnectionAdapters::Quoting
-
- def columns(table_name, comment)
- { "users" =>
- [
- Column.new("id", :integer),
- Column.new("name", :string)
- ],
- "photos" =>
- [
- Column.new("id", :integer),
- Column.new("user_id", :integer),
- Column.new("camera_id", :integer)
- ]
- }[table_name]
- end
-
- def execute(*args)
- []
- end
-
- def quote_column_name(column_name)
- "`#{column_name}`"
- end
-
- def quote_table_name(table_name)
- "`#{table_name}`"
- end
-
- def supports_count_distinct?
- true
- end
- end
-
- class Column
- attr_reader :name, :type
-
- def initialize(name, type)
- @name = name
- @type = type
- end
- end
-end