mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 02:32:45 +08:00
correct specs
This commit is contained in:
parent
bd9bc7918c
commit
efc45aa704
|
@ -3,7 +3,10 @@ require "rails_helper"
|
|||
describe Jobs::NotifyMailingListSubscribers do
|
||||
|
||||
context "with mailing list on" do
|
||||
before { SiteSetting.default_email_mailing_list_mode = true }
|
||||
before do
|
||||
SiteSetting.default_email_mailing_list_mode = true
|
||||
SiteSetting.default_email_mailing_list_mode_frequency = 1
|
||||
end
|
||||
let(:user) { Fabricate(:user) }
|
||||
|
||||
context "SiteSetting.max_emails_per_day_per_user" do
|
||||
|
|
|
@ -294,7 +294,8 @@ describe TopicUser do
|
|||
it "will receive email notification for every topic" do
|
||||
user1 = Fabricate(:user)
|
||||
|
||||
SiteSetting.stubs(:default_email_mailing_list_mode).returns(true)
|
||||
SiteSetting.default_email_mailing_list_mode = true
|
||||
SiteSetting.default_email_mailing_list_mode_frequency = 1
|
||||
|
||||
user2 = Fabricate(:user)
|
||||
post = create_post
|
||||
|
|
Loading…
Reference in New Issue
Block a user