VRFS-1664 fixed mail sending test
This commit is contained in:
parent
1f726df320
commit
d36ec17436
|
|
@ -104,7 +104,6 @@
|
|||
|
||||
def new_musicians(user, new_musicians, host='www.jamkazam.com')
|
||||
@user, @new_musicians, @host = user, new_musicians, host
|
||||
|
||||
sendgrid_recipients([user.email])
|
||||
sendgrid_substitute('@USERID', [user.id])
|
||||
sendgrid_unique_args :type => "new_musicians"
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ Hi <%= @user.first_name %>,
|
|||
<% end %>
|
||||
</table>
|
||||
</p>
|
||||
<p>There are currently <%= @new_nearby.size%> musicians on JamKazam with low enough latency Internet connections to you to support a good online session. To see ALL the JamKazam musicians with whom you may want to connect and play, view our Musicians page at: <a href="http://www.jamkazam.com/client#/musicians">http://www.jamkazam.com/client#/musicians</a>.
|
||||
<p>There are currently <%= @new_musicians.size%> musicians on JamKazam with low enough latency Internet connections to you to support a good online session. To see ALL the JamKazam musicians with whom you may want to connect and play, view our Musicians page at: <a href="http://www.jamkazam.com/client#/musicians">http://www.jamkazam.com/client#/musicians</a>.
|
||||
</p>
|
||||
|
||||
<p>Best Regards,</p>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ The following new musicians have joined JamKazam within the last week, and have
|
|||
<%= user.biography %>
|
||||
<% end %>
|
||||
|
||||
There are currently <%= @new_nearby.size%> musicians on JamKazam with low enough latency Internet connections to you to support a good online session. To see ALL the JamKazam musicians with whom you may want to connect and play, view our Musicians page at: http://www.jamkazam.com/client#/musicians.
|
||||
There are currently <%= @new_musicians.size%> musicians on JamKazam with low enough latency Internet connections to you to support a good online session. To see ALL the JamKazam musicians with whom you may want to connect and play, view our Musicians page at: http://www.jamkazam.com/client#/musicians.
|
||||
|
||||
Best Regards,
|
||||
Team JamKazam
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ SQL
|
|||
self.fetch_recipients do |user, new_musicians|
|
||||
self.opt_in_count += 1
|
||||
bset = EmailBatchSet.new_musician_set(self, user, new_musicians)
|
||||
UserMailer.new_musicians(uu, new_musicians).deliver
|
||||
UserMailer.new_musicians(user, new_musicians).deliver
|
||||
end
|
||||
self.sent_count = self.opt_in_count
|
||||
self.save
|
||||
|
|
|
|||
|
|
@ -54,10 +54,10 @@ describe EmailBatchNewMusician do
|
|||
end
|
||||
|
||||
it 'sends email' do
|
||||
pending
|
||||
receiver; drummer; loser; vocalist
|
||||
ebatch = new_musician_batch
|
||||
ebatch.deliver_batch
|
||||
expect(UserMailer.deliveries.length).to eq(3)
|
||||
expect(UserMailer.deliveries.length).to eq(1)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue