mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Fix distributor logo spec - Add a logo
This commit is contained in:
@@ -20,6 +20,11 @@ feature "As a consumer I want to shop with a distributor", js: true do
|
||||
end
|
||||
|
||||
it "shows a distributor with images" do
|
||||
# Given the distributor has a logo
|
||||
distributor.logo = File.new(Rails.root + 'app/assets/images/logo.jpg')
|
||||
distributor.save!
|
||||
|
||||
# Then we should see the distributor and its logo
|
||||
visit shop_path
|
||||
page.should have_text distributor.name
|
||||
find("#tab_about a").click
|
||||
|
||||
Reference in New Issue
Block a user