reenable mailing
This commit is contained in:
@@ -8,7 +8,7 @@ class SupportersController < ApplicationController
|
||||
def create
|
||||
@supporter = Supporter.new supporter_form_params.merge(language: I18n.locale)
|
||||
if !input_to_fast? && @supporter.save
|
||||
# SupporterMailer.welcome_email(@supporter).deliver_now
|
||||
SupporterMailer.welcome_email(@supporter).deliver_now
|
||||
redirect_to thanks_path
|
||||
else
|
||||
flash.now[:danger] = t '.timeout' if input_to_fast?
|
||||
|
||||
@@ -22,7 +22,7 @@ feature 'Support announcement' do
|
||||
|
||||
expect(ActionMailer::Base.deliveries.count).to eq 0
|
||||
expect { click_button 'Unterstützung zusichern' }.to change { Supporter.count }.by(1)
|
||||
# expect(ActionMailer::Base.deliveries.count).to eq 1
|
||||
expect(ActionMailer::Base.deliveries.count).to eq 1
|
||||
|
||||
supporter = Supporter.find_by(email: 'blocher@blocher.ch')
|
||||
expect(supporter.coordinates).to eq [8.618589100000001, 47.2926304]
|
||||
|
||||
Reference in New Issue
Block a user