title: How to use expect in text with line breaks?
body: <p>I'm doing some automated tests with <code>capybara</code>, <code>cucumber</code> and <code>webdriver</code>.</p>
  <p>And I have an objective to know if a text was loaded on a page, however there is a css property in it <code>white-space</code> that breaks the text and the expect cannot find.</p>
  <p>My code is like this.</p>
  <p>HTML</p>
  <pre><code>&lt;p style=&quot;white-space: pre-wrap;&quot;&gt;
      Some 
      cool 
      text
  &lt;/p&gt;
  </code></pre>
  <p>Cucumber.Feature</p>
  <pre><code>expect(page).to have_selector('p', text: 'Some')
  expect(page).to have_selector('p', text: 'cool')
  expect(page).to have_selector('p', text: 'text')
  </code></pre>
  <p>I'm looking for something similar to:</p>
  <pre><code>#This text will failure in teste
  expect(page).to have_selector('p', text: 'Some cool text')
  </code></pre>