1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2025-12-10 08:46:41 +01:00

Add test for incorrect problem count

This commit is contained in:
Philipp Fischbeck 2015-09-09 17:56:13 +02:00
parent 95b84f003c
commit 07a994593d

View File

@ -18,4 +18,10 @@ class Admin::DashboardControllerTest < ActionController::TestCase
assert_equal 15, Problem.count assert_equal 15, Problem.count
end 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 end