Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rake tests to remove reference to removed tasks #43977

Merged
merged 1 commit into from Dec 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion railties/test/application/rake/dbs_test.rb
Expand Up @@ -471,7 +471,7 @@ def db_fixtures_load(expected_database)
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
Expand Down
8 changes: 4 additions & 4 deletions railties/test/application/rake/multi_dbs_test.rb
Expand Up @@ -586,19 +586,19 @@ def change
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

Expand Down