Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2018-02-15 14:06:57 +0300
committerDouwe Maan <douwe@selenight.nl>2018-02-15 14:07:03 +0300
commitbed60b8c47acd11569da7cf5dc5bdb545ac97784 (patch)
tree9f9e76dd1b1fec8b00a98fe2a282c82e670d7069 /spec/helpers/events_helper_spec.rb
parent2b3313697f370d31abdda4177701ba20b66ba3e6 (diff)
Escape HTML entities in commit messages
Diffstat (limited to 'spec/helpers/events_helper_spec.rb')
-rw-r--r--spec/helpers/events_helper_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/helpers/events_helper_spec.rb b/spec/helpers/events_helper_spec.rb
index 8a80b88da5d..fccde8b7eba 100644
--- a/spec/helpers/events_helper_spec.rb
+++ b/spec/helpers/events_helper_spec.rb
@@ -20,5 +20,9 @@ describe EventsHelper do
it 'handles nil values' do
expect(helper.event_commit_title(nil)).to eq('')
end
+
+ it 'does not escape HTML entities' do
+ expect(helper.event_commit_title("foo & bar")).to eq("foo & bar")
+ end
end
end