diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-28 23:47:20 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-28 23:47:20 -0200 |
commit | 721cf54ee7b88fe6a4920b4ecabdd5beaae904a5 (patch) | |
tree | 80e045aa87cae7572c5ab1ea28d8ea93b7b1d9d5 /activerecord | |
parent | a119dd377556cd0f636f0d69e55ddf6ab3443623 (diff) | |
download | rails-721cf54ee7b88fe6a4920b4ecabdd5beaae904a5.tar.gz rails-721cf54ee7b88fe6a4920b4ecabdd5beaae904a5.tar.bz2 rails-721cf54ee7b88fe6a4920b4ecabdd5beaae904a5.zip |
Fix the skip code.
Checking for the constant doesn't work
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/connection_specification/resolver_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/cases/connection_specification/resolver_test.rb b/activerecord/test/cases/connection_specification/resolver_test.rb index d66bb60412..79f0c65859 100644 --- a/activerecord/test/cases/connection_specification/resolver_test.rb +++ b/activerecord/test/cases/connection_specification/resolver_test.rb @@ -9,7 +9,7 @@ module ActiveRecord end def test_url_host_no_db - skip "only if mysql is available" unless defined?(MysqlAdapter) + skip "only if mysql is available" unless current_adapter?(:MysqlAdapter) or current_adapter?(:Mysql2Adapter) spec = resolve 'mysql://foo?encoding=utf8' assert_equal({ :adapter => "mysql", @@ -19,7 +19,7 @@ module ActiveRecord end def test_url_host_db - skip "only if mysql is available" unless defined?(MysqlAdapter) + skip "only if mysql is available" unless current_adapter?(:MysqlAdapter) or current_adapter?(:Mysql2Adapter) spec = resolve 'mysql://foo/bar?encoding=utf8' assert_equal({ :adapter => "mysql", @@ -29,7 +29,7 @@ module ActiveRecord end def test_url_port - skip "only if mysql is available" unless defined?(MysqlAdapter) + skip "only if mysql is available" unless current_adapter?(:MysqlAdapter) or current_adapter?(:Mysql2Adapter) spec = resolve 'mysql://foo:123?encoding=utf8' assert_equal({ :adapter => "mysql", @@ -40,7 +40,7 @@ module ActiveRecord end def test_encoded_password - skip "only if mysql is available" unless defined?(MysqlAdapter) + skip "only if mysql is available" unless current_adapter?(:MysqlAdapter) or current_adapter?(:Mysql2Adapter) password = 'am@z1ng_p@ssw0rd#!' encoded_password = URI.encode_www_form_component(password) spec = resolve "mysql://foo:#{encoded_password}@localhost/bar" |