summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/other_markup.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/other_markup.rb')
-rw-r--r--spec/lib/gitlab/other_markup.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/spec/lib/gitlab/other_markup.rb b/spec/lib/gitlab/other_markup.rb
deleted file mode 100644
index 8f5a353b381..00000000000
--- a/spec/lib/gitlab/other_markup.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-require 'spec_helper'
-
-describe Gitlab::OtherMarkup, lib: true do
- context "XSS Checks" do
- links = {
- 'links' => {
- file: 'file.rdoc',
- input: 'XSS[JaVaScriPt:alert(1)]',
- output: '<p><a>XSS</a></p>'
- }
- }
- links.each do |name, data|
- it "does not convert dangerous #{name} into HTML" do
- expect(render(data[:file], data[:input], context)).to eql data[:output]
- end
- end
- end
-
- def render(*args)
- described_class.render(*args)
- end
-end