added mailer
This commit is contained in:
@@ -20,7 +20,10 @@ feature 'Support announcement' do
|
||||
|
||||
sleep 5 # Do a real sleep to have a real integration test
|
||||
|
||||
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
|
||||
|
||||
supporter = Supporter.find_by(email: 'blocher@blocher.ch')
|
||||
expect(supporter.coordinates).to eq [8.618589100000001, 47.2926304]
|
||||
expect(supporter.comments).to eq 'Test text'
|
||||
|
||||
Reference in New Issue
Block a user