Perform delivery when checking deliveries in specs

This commit is contained in:
Pau Perez
2018-12-03 16:54:07 +01:00
parent 064d9cf183
commit 25eb297215
3 changed files with 6 additions and 0 deletions

View File

@@ -33,6 +33,8 @@ feature "Managing users" do
let(:user) { create :user, confirmed_at: nil }
it "displays success" do
ActionMailer::Base.perform_deliveries = true
visit spree.edit_admin_user_path user
expect do

View File

@@ -21,6 +21,8 @@ feature "Account Settings", js: true do
end
it "allows the user to update their email address" do
ActionMailer::Base.perform_deliveries = true
fill_in 'user_email', with: 'new@email.com'
expect do

View File

@@ -71,6 +71,8 @@ feature "Authentication", js: true do
end
scenario "Signing up successfully" do
ActionMailer::Base.perform_deliveries = true
setup_email
fill_in "Email", with: "test@foo.com"
fill_in "Choose a password", with: "test12345"