Skip to content

Commit

Permalink
escape regex character
Browse files Browse the repository at this point in the history
  • Loading branch information
jsugarman committed Dec 1, 2023
1 parent bee885b commit c798456
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions features/support/puffing_billy_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,16 @@ def organisation_search_term_stubs
end

def before_puffing_billy_stubs
proxy
.stub(/https:\/\/accounts\.google\.com/, method: "all")
.and_return(code: 200, body: "")

proxy
.stub(/content-autofill\.googleapis\.com/)
.and_return(code: 200, body: "")

proxy
.stub(%r{https://legal-framework-api-staging\.cloud-platform.service\.justice\.gov\.uk.*/organisation_searches}, method: "options")
.stub(%r{https://legal-framework-api-staging\.cloud-platform\.service\.justice\.gov\.uk.*/organisation_searches}, method: "options")
.and_return(
headers: {
"Access-Control-Allow-Origin" => "*",
Expand All @@ -124,7 +128,7 @@ def before_puffing_billy_stubs
)

proxy
.stub(%r{https://legal-framework-api-staging\.cloud-platform.service\.justice.gov\.uk.*/proceeding_types/searches}, method: "options")
.stub(%r{https://legal-framework-api-staging\.cloud-platform\.service\.justice\.gov\.uk.*/proceeding_types/searches}, method: "options")
.and_return(
headers: {
"Access-Control-Allow-Origin" => "*",
Expand Down

0 comments on commit c798456

Please sign in to comment.