diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-06-26 13:44:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-26 13:44:22 -0400 |
commit | 229d8b2a7e30761054ca2eb5b359f4db4fadb7e2 (patch) | |
tree | 09484c7cd6e224f8256d799280d29875609d3a4d /activerecord/test/cases | |
parent | 9105a8ee43ea5c528a7d9468cec61c320670a185 (diff) | |
parent | 8f1486f2697095749777c7896ab5bf9211a4b8d3 (diff) | |
download | rails-229d8b2a7e30761054ca2eb5b359f4db4fadb7e2.tar.gz rails-229d8b2a7e30761054ca2eb5b359f4db4fadb7e2.tar.bz2 rails-229d8b2a7e30761054ca2eb5b359f4db4fadb7e2.zip |
Merge pull request #29519 from Edouard-chin/ec-structure-flags-order
Pass `structure_dump_flags` / `structure_load_flags` options before any other:
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/tasks/mysql_rake_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/tasks/mysql_rake_test.rb b/activerecord/test/cases/tasks/mysql_rake_test.rb index c22d974536..9c6fb14376 100644 --- a/activerecord/test/cases/tasks/mysql_rake_test.rb +++ b/activerecord/test/cases/tasks/mysql_rake_test.rb @@ -296,7 +296,7 @@ if current_adapter?(:Mysql2Adapter) def test_structure_dump_with_extra_flags filename = "awesome-file.sql" - expected_command = ["mysqldump", "--result-file", filename, "--no-data", "--routines", "--skip-comments", "--noop", "test-db"] + expected_command = ["mysqldump", "--noop", "--result-file", filename, "--no-data", "--routines", "--skip-comments", "test-db"] assert_called_with(Kernel, :system, expected_command, returns: true) do with_structure_dump_flags(["--noop"]) do @@ -364,7 +364,7 @@ if current_adapter?(:Mysql2Adapter) def test_structure_load filename = "awesome-file.sql" - expected_command = ["mysql", "--execute", %{SET FOREIGN_KEY_CHECKS = 0; SOURCE #{filename}; SET FOREIGN_KEY_CHECKS = 1}, "--database", "test-db", "--noop"] + expected_command = ["mysql", "--noop", "--execute", %{SET FOREIGN_KEY_CHECKS = 0; SOURCE #{filename}; SET FOREIGN_KEY_CHECKS = 1}, "--database", "test-db"] assert_called_with(Kernel, :system, expected_command, returns: true) do with_structure_load_flags(["--noop"]) do |