From 0c02c41c85311ff821aa790ed488a008eacb46ac Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 14 Apr 2015 16:29:26 +0200 Subject: [PATCH] So string cleanups, needed for richtext tests (some browsers will remove \n at the end, some browsers not). --- test/browser_test_helper.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index 856ee4531..1b431a968 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -465,6 +465,11 @@ class TestCase < Test::Unit::TestCase raise e.inspect end end + + # do cleanups (needed for richtext tests) + text.gsub!(/\s+$/m, '') + params[:value].gsub!(/\s+$/m, '') + match = false if params[:no_quote] #puts "aaaa #{text}/#{params[:value]}"