You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
context"with a URI that the Ruby default URI library cannot parse"do
13
+
let(:path){"/badpath"}
12
14
13
15
beforedo
14
16
# Can't use or stub URI.parse because rack test uses it to execute the actual test
@@ -24,6 +26,22 @@ module PactBroker
24
26
it"passes the request to the underlying app"do
25
27
expect(subject.status).toeq200
26
28
end
29
+
30
+
context"when the URI contains a new line because someone forgot to strip the result of `git rev-parse HEAD`, and I have totally never done this before myself"do
31
+
let(:path){URI.encode("/foo\n/bar")}
32
+
33
+
it"returns a 422"do
34
+
expect(subject.status).toeq422
35
+
end
36
+
end
37
+
38
+
context"when the URI contains a tab because sooner or later someone is eventually going to do this"do
0 commit comments