diff --git a/spec/system/consumer/shopping/shopping_spec.rb b/spec/system/consumer/shopping/shopping_spec.rb index 1e20110e97..0d0e8c7229 100644 --- a/spec/system/consumer/shopping/shopping_spec.rb +++ b/spec/system/consumer/shopping/shopping_spec.rb @@ -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