Add problem count changing to the admin dashboard

This commit is contained in:
pfischbeck committed 2015-09-09 17:40:15 +02:00
1 parent ae9315a623
commit 95b84f003c
5 files changed
+33 -2

No files matched your search

@@ -12,4 +12,10 @@ class Admin::DashboardControllerTest < ActionController::TestCase
assert_response :success
end
test "should post new problem count" do
post :update_problem_count, problem_count: 15
assert_redirected_to controller: 'admin/dashboard', action: 'index'
assert_equal 15, Problem.count
end
end