diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-02-21 11:59:34 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-02-24 14:36:18 -0300 |
commit | d5ec8efdafaf24661b7d40478ca91dfda9464f93 (patch) | |
tree | 8ae2affa3d1c76731bb26b67139dd0e2169135ee /activerecord/test/cases | |
parent | e54acf1308e2e4df047bf90798208e03e1370098 (diff) | |
download | rails-d5ec8efdafaf24661b7d40478ca91dfda9464f93.tar.gz rails-d5ec8efdafaf24661b7d40478ca91dfda9464f93.tar.bz2 rails-d5ec8efdafaf24661b7d40478ca91dfda9464f93.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')
-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 b67d70ede7..b965983fec 100644 --- a/activerecord/test/cases/adapters/mysql/connection_test.rb +++ b/activerecord/test/cases/adapters/mysql/connection_test.rb @@ -19,6 +19,9 @@ class MysqlConnectionTest < ActiveRecord::TestCase def test_connect_with_url run_without_connection do |orig| ar_config = ARTest.connection_config['arunit'] + + skip "This test doesn't work with custom socket location" if ar_config['socket'] + url = "mysql://#{ar_config["username"]}@localhost/#{ar_config["database"]}" Klass.establish_connection(url) assert_equal ar_config['database'], Klass.connection.current_database |