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