diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-08-29 17:44:36 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-29 17:44:36 +0900 |
commit | ca5621d4f25b71f3b59bc8354d4bc1526b14cfcd (patch) | |
tree | 61eda2817eb34b2b9151910d7ad4aac6804cf9d2 /railties/test | |
parent | ca941da4002bb604bc7fef7bedcff8428bd5dc08 (diff) | |
parent | c3b2d7117c6b5aede95e9126c4c0cb48bca0739b (diff) | |
download | rails-ca5621d4f25b71f3b59bc8354d4bc1526b14cfcd.tar.gz rails-ca5621d4f25b71f3b59bc8354d4bc1526b14cfcd.tar.bz2 rails-ca5621d4f25b71f3b59bc8354d4bc1526b14cfcd.zip |
Merge pull request #30451 from y-yagi/fix_cant_modify_forzen_string_error_in_dbconsole_with_sqlserver
Fix `can't modify frozen String` error in `DBConsole`
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/commands/dbconsole_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/commands/dbconsole_test.rb b/railties/test/commands/dbconsole_test.rb index e922a23e15..6ad96b28c7 100644 --- a/railties/test/commands/dbconsole_test.rb +++ b/railties/test/commands/dbconsole_test.rb @@ -206,6 +206,12 @@ class Rails::DBConsoleTest < ActiveSupport::TestCase assert_equal ["sqlplus", "user/secret@db"], dbconsole.find_cmd_and_exec_args end + def test_sqlserver + start(adapter: "sqlserver", database: "db", username: "user", password: "secret", host: "localhost", port: 1433) + assert_not aborted + assert_equal ["sqsh", "-D", "db", "-U", "user", "-P", "secret", "-S", "localhost:1433"], dbconsole.find_cmd_and_exec_args + end + def test_unknown_command_line_client start(adapter: "unknown", database: "db") assert aborted |