diff --git a/contrib/ruby/test/auth_test.rb b/contrib/ruby/test/auth_test.rb index 24f677e1..cace938c 100644 --- a/contrib/ruby/test/auth_test.rb +++ b/contrib/ruby/test/auth_test.rb @@ -2,15 +2,22 @@ class AuthTest < TrilogyTest def test_cleartext_auth_plugin - client = new_tcp_client username: "cleartext_user", password: "password", enable_cleartext_plugin: true + client = new_tcp_client(username: "cleartext_user", password: "password", enable_cleartext_plugin: true) refute_nil client ensure ensure_closed client end def test_cleartext_auth_plugin_disabled - assert_raises Trilogy::AuthPluginError do - new_tcp_client username: "cleartext_user", password: "password" + assert_raises(Trilogy::AuthPluginError) do + new_tcp_client(username: "cleartext_user", password: "password") end end + + def test_mysql_native_password + client = new_tcp_client(username: "native", password: "") + refute_nil client + ensure + ensure_closed client + end end