diff options
Diffstat (limited to 'spec/lib/constraints')
-rw-r--r-- | spec/lib/constraints/group_url_constrainer_spec.rb | 6 | ||||
-rw-r--r-- | spec/lib/constraints/project_url_constrainer_spec.rb | 6 | ||||
-rw-r--r-- | spec/lib/constraints/user_url_constrainer_spec.rb | 6 |
3 files changed, 0 insertions, 18 deletions
diff --git a/spec/lib/constraints/group_url_constrainer_spec.rb b/spec/lib/constraints/group_url_constrainer_spec.rb index bc767f46d8e..db680489a8d 100644 --- a/spec/lib/constraints/group_url_constrainer_spec.rb +++ b/spec/lib/constraints/group_url_constrainer_spec.rb @@ -30,12 +30,6 @@ describe GroupUrlConstrainer, lib: true do it { expect(subject.matches?(request)).to be_falsey } end - context 'invalid encoding' do - let(:request) { build_request("hi \255") } - - it { expect(subject.matches?(request)).to be_falsey } - end - context 'when the request matches a redirect route' do context 'for a root group' do let!(:redirect_route) { group.redirect_routes.create!(path: 'gitlabb') } diff --git a/spec/lib/constraints/project_url_constrainer_spec.rb b/spec/lib/constraints/project_url_constrainer_spec.rb index 4b1a1e2f607..b6884e37aa3 100644 --- a/spec/lib/constraints/project_url_constrainer_spec.rb +++ b/spec/lib/constraints/project_url_constrainer_spec.rb @@ -39,12 +39,6 @@ describe ProjectUrlConstrainer, lib: true do it { expect(subject.matches?(request)).to be_falsey } end end - - context 'invalid encoding' do - let(:request) { build_request("hi \255", "bye \255") } - - it { expect(subject.matches?(request)).to be_falsey } - end end def build_request(namespace, project, method = 'GET') diff --git a/spec/lib/constraints/user_url_constrainer_spec.rb b/spec/lib/constraints/user_url_constrainer_spec.rb index 3a53834a875..ed69b830979 100644 --- a/spec/lib/constraints/user_url_constrainer_spec.rb +++ b/spec/lib/constraints/user_url_constrainer_spec.rb @@ -30,12 +30,6 @@ describe UserUrlConstrainer, lib: true do it { expect(subject.matches?(request)).to be_falsey } end end - - context 'invalid encoding' do - let(:request) { build_request("hi \255") } - - it { expect(subject.matches?(request)).to be_falsey } - end end def build_request(username, method = 'GET') |