]> git.openstreetmap.org Git - rails.git/commitdiff
More cleanup after tests.
authorMatt Amos <zerebubuth@gmail.com>
Mon, 22 Aug 2016 18:05:11 +0000 (19:05 +0100)
committerMatt Amos <zerebubuth@gmail.com>
Mon, 22 Aug 2016 18:05:11 +0000 (19:05 +0100)
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