From: Matt Amos Date: Mon, 22 Aug 2016 18:05:11 +0000 (+0100) Subject: More cleanup after tests. X-Git-Tag: live~2981^2~121 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/119016255ec56bb7e7bc74be19858380e868da93?ds=sidebyside More cleanup after tests. --- 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