mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-24 05:38:52 +00:00
13 lines
307 B
Ruby
13 lines
307 B
Ruby
require 'spec_helper'
|
|
|
|
feature 'Home', js: true do
|
|
let(:distributor) { create(:distributor_enterprise) }
|
|
it "shows all hubs" do
|
|
distributor
|
|
visit "/"
|
|
page.should have_content distributor.name
|
|
find("hub a.row").click
|
|
page.should have_content "Shop at #{distributor.name}"
|
|
end
|
|
end
|