Add test for incorrect problem count

This commit is contained in:
pfischbeck committed 2015-09-09 17:56:13 +02:00
1 parent 95b84f003c
commit 07a994593d
1 file changed
+6
@@ -18,4 +18,10 @@ class Admin::DashboardControllerTest < ActionController::TestCase
assert_equal 15, Problem.count
end
test "should fail incorrect problem count" do
post :update_problem_count, problem_count: 2
assert_redirected_to controller: 'admin/dashboard', action: 'index'
assert_equal 3, Problem.count
end
end