correct specs

This commit is contained in:
Sam 2016-05-27 12:35:22 +10:00
parent bd9bc7918c
commit efc45aa704
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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