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
path: root/spec
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-08-21 12:45:47 +0300
committerJarka Kadlecova <jarka@gitlab.com>2017-08-22 21:14:51 +0300
commit4788848224e807e00beb544b52087b43d9642cb6 (patch)
tree4a8e1d34b7d680145bc94e433b26469b830aed52 /spec
parent4e813f1d2940854b8b62e2b2e982417edf93e259 (diff)
Merge branch '36458-user-profile-activity-feed-contains-broken-image-links' into 'master'
Resolve "User profile activity feed contains broken image links" Closes #36458 See merge request !13606
Diffstat (limited to 'spec')
-rw-r--r--spec/helpers/events_helper_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/helpers/events_helper_spec.rb b/spec/helpers/events_helper_spec.rb
index aa138f25bd3..4b72dbb7964 100644
--- a/spec/helpers/events_helper_spec.rb
+++ b/spec/helpers/events_helper_spec.rb
@@ -62,6 +62,12 @@ describe EventsHelper do
expect(helper.event_note(input)).to eq(expected)
end
+ it 'preserves data-src for lazy images' do
+ input = "![ImageTest](/uploads/test.png)"
+ image_url = "data-src=\"/uploads/test.png\""
+ expect(helper.event_note(input)).to match(image_url)
+ end
+
context 'labels formatting' do
let(:input) { 'this should be ~label_1' }