blob: 874498e63380e0567db648f94881289a2771ea8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
require 'spec_helper'
describe StorageHealthHelper do
describe '#failing_storage_health_message' do
let(:health) do
Gitlab::Git::Storage::Health.new(
"<script>alert('storage name');)</script>",
[]
)
end
it 'escapes storage names' do
escaped_storage_name = '<script>alert('storage name');)</script>'
result = helper.failing_storage_health_message(health)
expect(result).to include(escaped_storage_name)
end
end
end
|