blob: 36bfce19c2ca062159da025a0f5f222ce8b2a660 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
module BreadcrumbFeatures
def expect_breadcrumb_links *link_names
within('.breadcrumbs') do
all('a').zip( link_names ).each do | link_element, link_content |
within(link_element) do | |
expect(page).to have_content(link_content)
end
end
end
end
end
RSpec.configure do | conf |
conf.include BreadcrumbFeatures, type: :feature
end
|