deactivating mailing

This commit is contained in:
2016-04-20 11:17:47 +02:00
parent 77ce438a41
commit bcc2b4af6b
3 changed files with 3 additions and 3 deletions
@@ -1,3 +1,3 @@
class Admin::ApplicationController < ApplicationController
http_basic_authenticate_with name: "admin", password: ENV['ADMIN_PASSWORD'] unless Rails.env.development?
http_basic_authenticate_with name: 'admin', password: ENV['ADMIN_PASSWORD'] unless Rails.env.development?
end
+1 -1
View File
@@ -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?
+1 -1
View File
@@ -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]