mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
remove invalid specs
This commit is contained in:
parent
468244e418
commit
e858def372
1 changed files with 0 additions and 19 deletions
|
@ -184,31 +184,12 @@ describe Email::MessageBuilder do
|
|||
expect(message_with_unsubscribe.body).to match('/t/1234/unsubscribe')
|
||||
end
|
||||
|
||||
it "can add an unsubscribe via email link" do
|
||||
SiteSetting.stubs(:unsubscribe_via_email_footer).returns(true)
|
||||
expect(message_with_unsubscribe.body).to match(/mailto:reply@#{Discourse.current_hostname}\?subject=unsubscribe/)
|
||||
end
|
||||
|
||||
it "does not add unsubscribe via email link without site setting set" do
|
||||
expect(message_with_unsubscribe.body).to_not match(/mailto:reply@#{Discourse.current_hostname}\?subject=unsubscribe/)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
context "with mailing_list_mode enabled" do
|
||||
let(:message_with_unsubscribe_via_email) { Email::MessageBuilder.new(to_address,
|
||||
body: 'hello world',
|
||||
add_unsubscribe_link: true,
|
||||
mailing_list_mode: true,
|
||||
url: "/t/1234",
|
||||
unsubscribe_url: "/t/1234/unsubscribe") }
|
||||
|
||||
it "add an unsubscribe via email link" do
|
||||
expect(message_with_unsubscribe_via_email.body).to match(/mailto:reply@#{Discourse.current_hostname}\?subject=unsubscribe/)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
context "template_args" do
|
||||
|
|
Loading…
Reference in a new issue