From e62bdf987dd7e8574f5d223877a183e7beeb2730 Mon Sep 17 00:00:00 2001 From: zanetagebka Date: Thu, 6 Jun 2024 10:00:51 +0200 Subject: [PATCH] Fix test --- spec/system/admin/products_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/system/admin/products_spec.rb b/spec/system/admin/products_spec.rb index 9b2c4b7af5..50340bcea0 100644 --- a/spec/system/admin/products_spec.rb +++ b/spec/system/admin/products_spec.rb @@ -690,7 +690,7 @@ RSpec.describe ' end it "checks error when creating product image with unsupported format" do - unsupported_image_file_path = "#{Rails.root}README.md" + unsupported_image_file_path = Rails.root.join("README.md").to_s product = create(:simple_product, supplier: @supplier2) image = white_logo_file