mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 17:45:03 +08:00
12 lines
307 B
Ruby
12 lines
307 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
describe SubscriptionMailer do
|
||
|
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
|