mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 08:43:46 +08:00
f44ec18fd2
This change eliminates a couple of instances where subfolder urls are badly formatted, in most cases we can use Discourse.base_url_no_prefix to prevent adding the subfolder to the base url.
12 lines
304 B
Ruby
12 lines
304 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.describe EmailHelper do
|
|
describe "#email_topic_link" do
|
|
it "respects subfolder" do
|
|
set_subfolder "/forum"
|
|
topic = Fabricate(:topic)
|
|
expect(helper.email_topic_link(topic)).to include("#{Discourse.base_url_no_prefix}/forum/t")
|
|
end
|
|
end
|
|
end
|