Skip to content

Commit fd92a4d

Browse files
committed
Fix a file_test issue
1 parent 9658f50 commit fd92a4d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/matrixeval/ruby/docker_compose/file_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def test_create_all
101101
name: bundle_ruby_3_0_0
102102
postgres12:
103103
DOCKER_COMPOSE
104-
assert_equal expect_file_content, file_content
104+
assert_equal expect_file_content.strip, file_content.strip
105105

106106
file_content = File.read(dummy_gem_docker_compose_folder_path.join("ruby_3_0_active_model_7_0.yml"))
107107
expect_file_content = <<~DOCKER_COMPOSE
@@ -137,7 +137,7 @@ def test_create_all
137137
name: bundle_ruby_3_0_0
138138
postgres12:
139139
DOCKER_COMPOSE
140-
assert_equal expect_file_content, file_content
140+
assert_equal expect_file_content.strip, file_content.strip
141141

142142
file_content = File.read(dummy_gem_docker_compose_folder_path.join("ruby_3_1_active_model_6_1.yml"))
143143
expect_file_content = <<~DOCKER_COMPOSE
@@ -173,7 +173,7 @@ def test_create_all
173173
name: bundle_ruby_3_1_0
174174
postgres12:
175175
DOCKER_COMPOSE
176-
assert_equal expect_file_content, file_content
176+
assert_equal expect_file_content.strip, file_content.strip
177177

178178
file_content = File.read(dummy_gem_docker_compose_folder_path.join("ruby_3_1_active_model_7_0.yml"))
179179
expect_file_content = <<~DOCKER_COMPOSE
@@ -209,7 +209,7 @@ def test_create_all
209209
name: bundle_ruby_3_1_0
210210
postgres12:
211211
DOCKER_COMPOSE
212-
assert_equal expect_file_content, file_content
212+
assert_equal expect_file_content.strip, file_content.strip
213213
end
214214

215215

0 commit comments

Comments
 (0)