diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-07-06 17:10:55 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-07-06 17:10:55 -0300 |
commit | 29106ce99c74f5f7d57496ad68e2b16f3f632e35 (patch) | |
tree | 2d839c01bbd5d808977a64a188b989c647a29fc0 /activerecord/test/cases/adapters | |
parent | e359e3ab935d6790d9a1181e6ebe0038ad168b94 (diff) | |
download | rails-29106ce99c74f5f7d57496ad68e2b16f3f632e35.tar.gz rails-29106ce99c74f5f7d57496ad68e2b16f3f632e35.tar.bz2 rails-29106ce99c74f5f7d57496ad68e2b16f3f632e35.zip |
Skip connection url test when the machine is using socket configuration.
The connection url parssing don't accept the socket option
Diffstat (limited to 'activerecord/test/cases/adapters')
-rw-r--r-- | activerecord/test/cases/adapters/mysql/connection_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/mysql/connection_test.rb b/activerecord/test/cases/adapters/mysql/connection_test.rb index 9227d3a2ff..cfe89953eb 100644 --- a/activerecord/test/cases/adapters/mysql/connection_test.rb +++ b/activerecord/test/cases/adapters/mysql/connection_test.rb @@ -16,6 +16,9 @@ class MysqlConnectionTest < ActiveRecord::TestCase def test_connect_with_url run_without_connection do |orig| ar_config = ARTest.connection_config['arunit'] + + return skip "This test doesn't work with custom socket location" if ar_config['socket'] + url = "mysql://#{ar_config["username"]}@localhost/#{ar_config["database"]}" klass = Class.new(ActiveRecord::Base) klass.establish_connection(url) |