2020-06-24 03:31:20 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-07-27 22:27:38 -04:00
|
|
|
RSpec.describe SubscriptionMailer do
|
2020-06-24 03:31:20 -04:00
|
|
|
fab!(:user) { Fabricate(:user) }
|
|
|
|
|
|
|
|
subject { SubscriptionMailer.confirm_unsubscribe(user) }
|
|
|
|
|
|
|
|
it "contains the right URL" do
|
|
|
|
expect(subject.body).to include(
|
|
|
|
"#{Discourse.base_url}/email/unsubscribe/#{UnsubscribeKey.last.key}",
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|