Clean up the test checks when done

This commit is contained in:
Kane York
2015-09-01 13:32:35 -07:00
parent 3cbfc45bf6
commit 65790452d8
2 changed files with 21 additions and 14 deletions

View File

@@ -3,6 +3,10 @@ require 'spec_helper'
describe AdminDashboardData do
describe "adding new checks" do
after do
AdminDashboardData.reset_problem_checks
end
it 'calls the passed block' do
called = false
AdminDashboardData.add_problem_check do