From 2eeba59c42f2dd790995cf179a5889d0e1d57fe0 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Thu, 9 Jun 2022 14:18:16 +1000 Subject: [PATCH] chore: add failing spec for when there are percentages in the version number of a request to create a branch version --- spec/features/create_branch_version_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/features/create_branch_version_spec.rb b/spec/features/create_branch_version_spec.rb index ab99b9734..57a0bbbee 100644 --- a/spec/features/create_branch_version_spec.rb +++ b/spec/features/create_branch_version_spec.rb @@ -26,4 +26,12 @@ context "when the branch version does not exist" do its(:status) { is_expected.to eq 201 } end + + context "with a percentage in the version number", pending: "this is currently raising a utf-8 encoding error" do + let(:path) { "/pacticipants/foo/branches/main/versions/%25DATE%25_%25TIME%25" } + + it "returns a 201 response" do + expect(subject.status).to be 201 + end + end end