Skip to content

Commit 5919152

Browse files
committed
Improve the names of variables for devcontainer tests
1 parent 39056cc commit 5919152

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

railties/test/generators/db_system_change_generator_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class ChangeGeneratorTest < Rails::Generators::TestCase
100100
assert_compose_file do |compose_config|
101101
assert_includes compose_config["services"]["rails-app"]["depends_on"], "mysql"
102102

103-
expected_postgres_config = {
103+
expected_mysql_config = {
104104
"image" => "mysql/mysql-server:8.0",
105105
"restart" => "unless-stopped",
106106
"environment" => {
@@ -111,7 +111,7 @@ class ChangeGeneratorTest < Rails::Generators::TestCase
111111
"networks" => ["default"],
112112
}
113113

114-
assert_equal expected_postgres_config, compose_config["services"]["mysql"]
114+
assert_equal expected_mysql_config, compose_config["services"]["mysql"]
115115
assert_includes compose_config["volumes"].keys, "mysql-data"
116116
end
117117
end
@@ -165,7 +165,7 @@ class ChangeGeneratorTest < Rails::Generators::TestCase
165165
assert_compose_file do |compose_config|
166166
assert_includes compose_config["services"]["rails-app"]["depends_on"], "mariadb"
167167

168-
expected_postgres_config = {
168+
expected_mariadb_config = {
169169
"image" => "mariadb:10.5",
170170
"restart" => "unless-stopped",
171171
"networks" => ["default"],
@@ -175,7 +175,7 @@ class ChangeGeneratorTest < Rails::Generators::TestCase
175175
},
176176
}
177177

178-
assert_equal expected_postgres_config, compose_config["services"]["mariadb"]
178+
assert_equal expected_mariadb_config, compose_config["services"]["mariadb"]
179179
assert_includes compose_config["volumes"].keys, "mariadb-data"
180180
end
181181
end

0 commit comments

Comments
 (0)