diff options
| author | Robert | 2017-11-06 19:06:57 +0100 |
|---|---|---|
| committer | Robert | 2017-11-17 14:56:29 +0100 |
| commit | 76d11c7f973867e305d6841f69c62c5fd37d65a7 (patch) | |
| tree | 782bf6b84fae75a0645e2de341d1c6469d0b9f23 /spec/support/breadcrumb_features.rb | |
| parent | 36fec435004e595e2adbac72c8f634891a531b01 (diff) | |
| download | chouette-core-76d11c7f973867e305d6841f69c62c5fd37d65a7.tar.bz2 | |
Refs: #4283@16h;
- Implements the view
Missing:
- Spex failing (xpath navigation inside the display blocks is still faulty)
- Links to compliance_checks#show do not work (actually not this page's problem)
Diffstat (limited to 'spec/support/breadcrumb_features.rb')
| -rw-r--r-- | spec/support/breadcrumb_features.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/support/breadcrumb_features.rb b/spec/support/breadcrumb_features.rb new file mode 100644 index 000000000..36bfce19c --- /dev/null +++ b/spec/support/breadcrumb_features.rb @@ -0,0 +1,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 |
