mirror of
https://github.com/redmine/redmine.git
synced 2025-11-07 13:55:52 +01:00
shorten long line of test/unit/lib/redmine/helpers/diff_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20672 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -32,8 +32,9 @@ class DiffTest < ActiveSupport::TestCase
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user