diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-01-02 17:29:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-02 17:29:52 +0100 |
commit | 4bf04471f525571146f238e200467724b25689d8 (patch) | |
tree | 5bd5194d1b1440897add8c7a214fe32514181489 | |
parent | 4a36d81385bb78064fd3ebe0b35c9430017f7971 (diff) | |
parent | b63c2d6bfb9f1e813dda1b339a895b5967eb4ea2 (diff) | |
download | rails-4bf04471f525571146f238e200467724b25689d8.tar.gz rails-4bf04471f525571146f238e200467724b25689d8.tar.bz2 rails-4bf04471f525571146f238e200467724b25689d8.zip |
Merge pull request #27542 from utilum/remove_duplicate_test
Remove duplicated test
-rw-r--r-- | activerecord/test/cases/tasks/mysql_rake_test.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/test/cases/tasks/mysql_rake_test.rb b/activerecord/test/cases/tasks/mysql_rake_test.rb index 67aa7c8496..f30e0958c3 100644 --- a/activerecord/test/cases/tasks/mysql_rake_test.rb +++ b/activerecord/test/cases/tasks/mysql_rake_test.rb @@ -355,14 +355,6 @@ if current_adapter?(:Mysql2Adapter) def test_structure_load filename = "awesome-file.sql" - Kernel.expects(:system).with("mysql", "--execute", %{SET FOREIGN_KEY_CHECKS = 0; SOURCE #{filename}; SET FOREIGN_KEY_CHECKS = 1}, "--database", "test-db") - .returns(true) - - ActiveRecord::Tasks::DatabaseTasks.structure_load(@configuration, filename) - end - - 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"] assert_called_with(Kernel, :system, expected_command, returns: true) do |