aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapter_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases/adapter_test.rb')
-rw-r--r--activerecord/test/cases/adapter_test.rb30
1 files changed, 0 insertions, 30 deletions
diff --git a/activerecord/test/cases/adapter_test.rb b/activerecord/test/cases/adapter_test.rb
index b1d99960fe..3942e7bb41 100644
--- a/activerecord/test/cases/adapter_test.rb
+++ b/activerecord/test/cases/adapter_test.rb
@@ -60,17 +60,6 @@ class AdapterTest < ActiveRecord::TestCase
assert_equal @connection.show_variable('collation_database'), @connection.collation
end
- def test_connect_with_url
- begin
- ar_config = ARTest.connection_config['arunit']
- url = "mysql://#{ar_config["username"]}@localhost/#{ar_config["database"]}"
- ActiveRecord::Base.establish_connection(url)
- assert_equal ar_config['database'], ActiveRecord::Base.connection.current_database
- ensure
- ActiveRecord::Base.establish_connection 'arunit'
- end
- end
-
def test_show_nonexistent_variable_returns_nil
assert_nil @connection.show_variable('foo_bar_baz')
end
@@ -92,25 +81,6 @@ class AdapterTest < ActiveRecord::TestCase
end
end
- if current_adapter?(:PostgreSQLAdapter)
- def test_encoding
- assert_not_nil @connection.encoding
- end
-
- def test_connect_with_url
- begin
- ar_config = ARTest.connection_config['arunit']
- url = "postgres:///#{ar_config["database"]}?encoding=utf8"
- ActiveRecord::Base.establish_connection(url)
- connection = ActiveRecord::Base.connection
- assert_equal ar_config['database'], connection.current_database
- assert_equal "UTF8", connection.encoding
- ensure
- ActiveRecord::Base.establish_connection 'arunit'
- end
- end
- end
-
def test_table_alias
def @connection.test_table_alias_length() 10; end
class << @connection