merge new beta site features to develop branch

This commit is contained in:
Nuwan 2023-01-20 04:50:27 +05:30
parent c108bdd058
commit fef31f097f
2 changed files with 5 additions and 4 deletions

View File

@ -65,9 +65,9 @@ module JamRuby
UserMailer.new_musicians_match(user, matched_musician_data).deliver_now
user.update_column(:user_match_email_sent_at, Time.now)
email_sending.sent_user_ids.push(user.id)
email_sending.save!
#user.update_column(:user_match_email_sent_at, Time.now)
#email_sending.sent_user_ids.push(user.id)
#email_sending.save!
end
end

View File

@ -48,7 +48,8 @@ describe EmailNewMusicianMatch do
xit "delivers to priority recipients first" do
JamRuby::EmailNewMusicianMatch.send_new_musicians
ActionMailer::Base.deliveries[1]['to'].to_s.should == "seth@jamkazam.com" #NOTE: the first email is sent to user_match_monitoring_email. The second email should be sent to the first priority user in the priority user list
raise ActionMailer::Base.deliveries.map{|d| d['to'].to_s }.inspect #.include?("seth@example.com").should be_truthy
#ActionMailer::Base.deliveries[1]['to'].to_s.should == "seth@jamkazam.com" #NOTE: the first email is sent to user_match_monitoring_email. The second email should be sent to the first priority user in the priority user list
end
describe "halfway done job" do