lib/spreewald/table_steps.rb in spreewald-0.1.4 vs lib/spreewald/table_steps.rb in spreewald-0.1.5

- old
+ new

@@ -1,5 +1,7 @@ +# coding: UTF-8 + # Check the content of tables in your HTML. # # See [this article](https://makandracards.com/makandra/763-cucumber-step-to-match-table-rows-with-capybara) for details. @@ -27,10 +29,10 @@ end end end def normalize_content(content) - nbsp = 0xC2.chr + 0xA0.chr + nbsp = " " content.gsub(/[\r\n\t]+/, ' ').gsub(nbsp, ' ').gsub(/ {2,}/, ' ').strip end end