1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update rake tests to remove reference to removed tasks

As of cf269d51fb, db:structure:load has been removed and replaced by a unified use
of db:schema:load. Update the rake test names to remove reference to the removed task names
This commit is contained in:
Mark Gangl 2021-12-22 16:15:37 -07:00
parent 310d62a443
commit 164ba2feec
2 changed files with 5 additions and 5 deletions

View file

@ -471,7 +471,7 @@ module ApplicationTests
assert_equal 2, Admin::Book.count
end
test "db:schema:load and db:structure:load do not purge the existing database" do
test "db:schema:load does not purge the existing database" do
rails "runner", "ActiveRecord::Base.connection.create_table(:posts) {|t| t.string :title }"
app_file "db/schema.rb", <<-RUBY

View file

@ -586,19 +586,19 @@ module ApplicationTests
db_migrate_name_dumps_the_schema("animals", "sql")
end
test "db:migrate:name and db:schema:dump:name and db:schema:load:name works for the primary database" do
test "db:migrate:name and db:schema:dump:name and db:schema:load:name works for the primary database with a ruby schema" do
db_migrate_and_schema_dump_and_load_one_database("primary", "ruby")
end
test "db:migrate:name and db:schema:dump:name and db:schema:load:name works for the animals database" do
test "db:migrate:name and db:schema:dump:name and db:schema:load:name works for the animals database with a ruby schema" do
db_migrate_and_schema_dump_and_load_one_database("animals", "ruby")
end
test "db:migrate:name and db:structure:dump:name and db:structure:load:name works for the primary database" do
test "db:migrate:name and db:schema:dump:name and db:schema:load:name works for the primary database with a sql schema" do
db_migrate_and_schema_dump_and_load_one_database("primary", "sql")
end
test "db:migrate:name and db:structure:dump:name and db:structure:load:name works for the animals database" do
test "db:migrate:name and db:schema:dump:name and db:schema:load:name works for the animals database with a sql schema" do
db_migrate_and_schema_dump_and_load_one_database("animals", "sql")
end