Update spec/system/consumer/shopping/shopping_spec.rb

Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
Luis Azcuaga
2021-10-27 16:02:07 -05:00
committed by GitHub
parent e8fd89a6d2
commit 39b2cfca39

View File

@@ -29,7 +29,7 @@ describe "As a consumer I want to shop with a distributor", js: true do
it "shows a distributor with images" do
# Given the distributor has a logo
distributor.logo = File.new("#{Rails.root}app/assets/images/logo-white.png")
distributor.logo = File.new(Rails.root.join("app/assets/images/logo-white.png"))
distributor.save!
# Then we should see the distributor and its logo