diff --git a/spec/controllers/user_confirmations_controller_spec.rb b/spec/controllers/user_confirmations_controller_spec.rb index 854a5c1d9e..366884d30d 100644 --- a/spec/controllers/user_confirmations_controller_spec.rb +++ b/spec/controllers/user_confirmations_controller_spec.rb @@ -68,9 +68,11 @@ describe UserConfirmationsController, type: :controller do end it "sends the confirmation email" do - expect do - spree_post :create, { spree_user: { email: unconfirmed_user.email } } - end.to send_confirmation_instructions + performing_deliveries do + expect do + spree_post :create, { spree_user: { email: unconfirmed_user.email } } + end.to send_confirmation_instructions + end end end end