aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorutilum <oz@utilum.com>2017-01-02 16:30:56 +0100
committerutilum <oz@utilum.com>2017-01-02 16:30:56 +0100
commitb63c2d6bfb9f1e813dda1b339a895b5967eb4ea2 (patch)
tree5bd5194d1b1440897add8c7a214fe32514181489 /activerecord/test
parent4a36d81385bb78064fd3ebe0b35c9430017f7971 (diff)
downloadrails-b63c2d6bfb9f1e813dda1b339a895b5967eb4ea2.tar.gz
rails-b63c2d6bfb9f1e813dda1b339a895b5967eb4ea2.tar.bz2
rails-b63c2d6bfb9f1e813dda1b339a895b5967eb4ea2.zip
Remove duplicated test
b8f74860b61782e3b949ade3bb51bff40899e89b provided a nicer version of `#test_structure_load` but the old version was not removed.
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/tasks/mysql_rake_test.rb8
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