mirror of
https://github.com/projekteuler/projekteuler.git
synced 2025-12-10 00:36:42 +01:00
Add test for incorrect problem count
This commit is contained in:
parent
95b84f003c
commit
07a994593d
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user