summaryrefslogtreecommitdiffstats
path: root/test/unit/lib/redmine/helpers/gantt_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/lib/redmine/helpers/gantt_test.rb')
-rw-r--r--test/unit/lib/redmine/helpers/gantt_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/helpers/gantt_test.rb b/test/unit/lib/redmine/helpers/gantt_test.rb
index 0b97a7f20..b494ecb19 100644
--- a/test/unit/lib/redmine/helpers/gantt_test.rb
+++ b/test/unit/lib/redmine/helpers/gantt_test.rb
@@ -574,4 +574,9 @@ class Redmine::Helpers::GanttHelperTest < Redmine::HelperTest
assert_equal versions.sort, Redmine::Helpers::Gantt.sort_versions!(versions.dup)
end
+
+ def test_magick_text
+ create_gantt
+ assert_equal "'foo\\'bar\\\\baz'", @gantt.send(:magick_text, "foo'bar\\baz")
+ end
end