So string cleanups, needed for richtext tests (some browsers will remove \n at the end, some browsers not).

This commit is contained in:
Martin Edenhofer 2015-04-14 16:29:26 +02:00
parent 73f265859d
commit 0c02c41c85

View file

@ -465,6 +465,11 @@ class TestCase < Test::Unit::TestCase
raise e.inspect raise e.inspect
end end
end end
# do cleanups (needed for richtext tests)
text.gsub!(/\s+$/m, '')
params[:value].gsub!(/\s+$/m, '')
match = false match = false
if params[:no_quote] if params[:no_quote]
#puts "aaaa #{text}/#{params[:value]}" #puts "aaaa #{text}/#{params[:value]}"