discourse/spec/helpers/email_helper_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
304 B
Ruby
Raw Normal View History

# 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