daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. matcher :have_nav_headers do |headers|
  2.    match_unless_raises do |page|
  3.      headers.each do |header|
  4.        expect(find('.navbar-default')).to have_content(header)
  5.      end
  6.    end
  7. end
  8.  
  9. matcher :have_nav_headers do |headers|
  10.    match_unless_raises do |page|
  11.      within('.navbar-default') do
  12.        byebug
  13.        headers.each do |header|
  14.          expect(page).to have_content(header)
  15.        end
  16.      end
  17.    end
  18.  end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top