lib/spreewald/table_steps.rb in spreewald-0.3.9 vs lib/spreewald/table_steps.rb in spreewald-0.3.10

- old
+ new

@@ -14,10 +14,10 @@ find_index do |row| expected_row.all? do |expected_column| first_column = row.find_index do |column| content = normalize_content(column.content) expected_content = normalize_content(expected_column) - matching_parts = expected_content.split('*', -1).collect { |part| Regexp.escape(part) } + matching_parts = expected_content.split(/\s*\*\s*/, -1).collect { |part| Regexp.escape(part) } matching_expression = /\A#{matching_parts.join(".*")}\z/ content =~ matching_expression end if first_column.nil? false