From 119016255ec56bb7e7bc74be19858380e868da93 Mon Sep 17 00:00:00 2001 From: Matt Amos Date: Mon, 22 Aug 2016 19:05:11 +0100 Subject: [PATCH] More cleanup after tests. --- test/controllers/issues_controller_test.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/controllers/issues_controller_test.rb b/test/controllers/issues_controller_test.rb index 1696df498..9cf68c869 100644 --- a/test/controllers/issues_controller_test.rb +++ b/test/controllers/issues_controller_test.rb @@ -3,6 +3,11 @@ require "test_helper" class IssuesControllerTest < ActionController::TestCase fixtures :users, :user_roles, :issues + teardown do + # cleanup any emails set off by the test + ActionMailer::Base.deliveries.clear + end + def test_view_dashboard_without_auth # Access issues_path without login get :index -- 2.39.5