1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-26 18:18:51 +01:00

Add problem count changing to the admin dashboard

This commit is contained in:
2015-09-09 17:40:15 +02:00
parent ae9315a623
commit 95b84f003c
5 changed files with 33 additions and 2 deletions

View File

@@ -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