after = "other stuff <script>alert('foo');</alert>"
computed_diff = Redmine::Helpers::Diff.new(before, after).to_html
- expected_diff = '<span class="diff_in"><stuff> with html & special chars</danger></span> <span class="diff_out">other stuff <script>alert('foo');</alert></span>'
-
+ expected_diff =
+ '<span class="diff_in"><stuff> with html & special chars</danger></span>' \
+ ' <span class="diff_out">other stuff <script>alert('foo');</alert></span>'
assert_equal computed_diff, expected_diff
end
end