Reduce hard coding of LOCAL_DOMAIN env value throughout tests (#35025)
This commit is contained in:
parent
f92ff6d699
commit
ab7f50ce4e
15 changed files with 69 additions and 37 deletions
|
|
@ -21,7 +21,7 @@ RSpec::Matchers.define :have_thread_headers do
|
|||
.and(have_header('References', conversation_header_regex))
|
||||
end
|
||||
|
||||
def conversation_header_regex = /<conversation-\d+.\d\d\d\d-\d\d-\d\d@cb6e6126.ngrok.io>/
|
||||
def conversation_header_regex = /<conversation-\d+.\d\d\d\d-\d\d-\d\d@#{Regexp.quote(Rails.configuration.x.local_domain)}>/
|
||||
end
|
||||
|
||||
RSpec::Matchers.define :have_standard_headers do |type|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue