]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/issues_controller_test.rb
More cleanup after tests.
[rails.git] / test / controllers / issues_controller_test.rb
index 1696df4981e5161eb6bcbb7b0d87535862429ff5..9cf68c8691f2f5df5651d64602a7c21173646bb1 100644 (file)
@@ -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