aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/active_schema_test_postgresql.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-06-25 13:29:17 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2010-06-25 14:47:14 -0700
commit5e2b473b478d93d6a1aa627d688b2b2ce05fa9ef (patch)
treec0778a2075f34feeec6f52426055e88280529e26 /activerecord/test/cases/active_schema_test_postgresql.rb
parentefbd0eb9f7508187259208caf6b51eec206cbac9 (diff)
downloadrails-5e2b473b478d93d6a1aa627d688b2b2ce05fa9ef.tar.gz
rails-5e2b473b478d93d6a1aa627d688b2b2ce05fa9ef.tar.bz2
rails-5e2b473b478d93d6a1aa627d688b2b2ce05fa9ef.zip
reorganizing adapter specific tests. [#4974 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activerecord/test/cases/active_schema_test_postgresql.rb')
-rw-r--r--activerecord/test/cases/active_schema_test_postgresql.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/activerecord/test/cases/active_schema_test_postgresql.rb b/activerecord/test/cases/active_schema_test_postgresql.rb
deleted file mode 100644
index f106e14319..0000000000
--- a/activerecord/test/cases/active_schema_test_postgresql.rb
+++ /dev/null
@@ -1,28 +0,0 @@
-require 'cases/helper'
-
-class PostgresqlActiveSchemaTest < Test::Unit::TestCase
- def setup
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.class_eval do
- alias_method :real_execute, :execute
- remove_method :execute
- def execute(sql, name = nil) sql end
- end
- end
-
- def teardown
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.class_eval do
- remove_method :execute
- alias_method :execute, :real_execute
- end
- end
-
- def test_create_database_with_encoding
- assert_equal %(CREATE DATABASE "matt" ENCODING = 'utf8'), create_database(:matt)
- assert_equal %(CREATE DATABASE "aimonetti" ENCODING = 'latin1'), create_database(:aimonetti, :encoding => :latin1)
- end
-
- private
- def method_missing(method_symbol, *arguments)
- ActiveRecord::Base.connection.send(method_symbol, *arguments)
- end
-end