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

url_shared_context.rb « shared_contexts « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f3d227b6e2b2e5aa5933be8f66f378ddcbaa58e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

RSpec.shared_context 'invalid urls' do
  let(:urls_with_CRLF) do
    ["http://127.0.0.1:333/pa\rth",
     "http://127.0.0.1:333/pa\nth",
     "http://127.0a.0.1:333/pa\r\nth",
     "http://127.0.0.1:333/path?param=foo\r\nbar",
     "http://127.0.0.1:333/path?param=foo\rbar",
     "http://127.0.0.1:333/path?param=foo\nbar",
     "http://127.0.0.1:333/pa%0dth",
     "http://127.0.0.1:333/pa%0ath",
     "http://127.0a.0.1:333/pa%0d%0th",
     "http://127.0.0.1:333/pa%0D%0Ath",
     "http://127.0.0.1:333/path?param=foo%0Abar",
     "http://127.0.0.1:333/path?param=foo%0Dbar",
     "http://127.0.0.1:333/path?param=foo%0D%0Abar"]
  end
end