mirror of
https://github.com/discourse/discourse.git
synced 2024-12-31 01:53:47 +08:00
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
|