提交 9862b3bf 编写于 作者: K Koichi ITO

Remove a duplicate test of mysql_rake_test

上级 7424a179
...@@ -294,13 +294,6 @@ def test_structure_dump ...@@ -294,13 +294,6 @@ def test_structure_dump
ActiveRecord::Tasks::DatabaseTasks.structure_dump(@configuration, filename) ActiveRecord::Tasks::DatabaseTasks.structure_dump(@configuration, filename)
end end
def test_structure_dump
filename = "awesome-file.sql"
Kernel.expects(:system).with("mysqldump", "--result-file", filename, "--no-data", "--routines", "--skip-comments", "test-db").returns(true)
ActiveRecord::Tasks::DatabaseTasks.structure_dump(@configuration, filename)
end
def test_structure_dump_with_extra_flags def test_structure_dump_with_extra_flags
filename = "awesome-file.sql" filename = "awesome-file.sql"
expected_command = ["mysqldump", "--result-file", filename, "--no-data", "--routines", "--skip-comments", "--noop", "test-db"] expected_command = ["mysqldump", "--result-file", filename, "--no-data", "--routines", "--skip-comments", "--noop", "test-db"]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册