Reduce hard coding of LOCAL_DOMAIN env value throughout tests (#35025)
This commit is contained in:
@@ -29,7 +29,10 @@ RSpec.describe TextFormatter do
|
||||
let(:text) { '@alice' }
|
||||
|
||||
it 'creates a mention link' do
|
||||
expect(subject).to include '<a href="https://cb6e6126.ngrok.io/@alice" class="u-url mention">@<span>alice</span></a></span>'
|
||||
expect(subject)
|
||||
.to include(<<~LINK.squish)
|
||||
<a href="https://#{Rails.configuration.x.local_domain}/@alice" class="u-url mention">@<span>alice</span></a>
|
||||
LINK
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user