diff options
Diffstat (limited to 'spec/lib/constraints/user_url_constrainer_spec.rb')
-rw-r--r-- | spec/lib/constraints/user_url_constrainer_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/constraints/user_url_constrainer_spec.rb b/spec/lib/constraints/user_url_constrainer_spec.rb index ed69b830979..3a53834a875 100644 --- a/spec/lib/constraints/user_url_constrainer_spec.rb +++ b/spec/lib/constraints/user_url_constrainer_spec.rb @@ -30,6 +30,12 @@ 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') |