From fef31f097f1f3304ca5a9667e688198ef25876e0 Mon Sep 17 00:00:00 2001 From: Nuwan Date: Fri, 20 Jan 2023 04:50:27 +0530 Subject: [PATCH] merge new beta site features to develop branch --- ruby/lib/jam_ruby/lib/email_new_musician_match.rb | 6 +++--- ruby/spec/jam_ruby/lib/email_new_musician_match_spec.rb | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ruby/lib/jam_ruby/lib/email_new_musician_match.rb b/ruby/lib/jam_ruby/lib/email_new_musician_match.rb index b55200ac0..cc93b2b5a 100644 --- a/ruby/lib/jam_ruby/lib/email_new_musician_match.rb +++ b/ruby/lib/jam_ruby/lib/email_new_musician_match.rb @@ -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 diff --git a/ruby/spec/jam_ruby/lib/email_new_musician_match_spec.rb b/ruby/spec/jam_ruby/lib/email_new_musician_match_spec.rb index 9cae3d4c0..56eca0494 100644 --- a/ruby/spec/jam_ruby/lib/email_new_musician_match_spec.rb +++ b/ruby/spec/jam_ruby/lib/email_new_musician_match_spec.rb @@ -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