Guest User

Untitled

a guest
Feb 20th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. it "should wrap with a div" do
  2. input = <<-HTML
  3. <p>
  4. In order to attain the greatest possible clearness,
  5. let us return to our example of the railway carriage supposed
  6. to be travelling uniformly.
  7. </p>
  8. HTML
  9.  
  10. output = <<-HTML
  11. <div class="klass" id="div_3">
  12. <p>
  13. In order to attain the greatest possible clearness,
  14. let us return to our example of the railway carriage supposed
  15. to be travelling uniformly.
  16. </p>
  17. </div>
  18. HTML
  19.  
  20. wrap_with_div(input, :class => 'klass', :id => 'div_3').should match_markup(output)
  21. end
Add Comment
Please, Sign In to add comment