mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 02:28:50 +01:00
Update rails and code
This commit is contained in:
@@ -13,13 +13,13 @@ class Admin::DashboardControllerTest < ActionController::TestCase
|
||||
end
|
||||
|
||||
test "should post new problem count" do
|
||||
post :update_problem_count, problem_count: 15
|
||||
post :update_problem_count, params: { problem_count: 15 }
|
||||
assert_redirected_to controller: 'admin/dashboard', action: 'index'
|
||||
assert_equal 15, Problem.count
|
||||
end
|
||||
|
||||
test "should fail incorrect problem count" do
|
||||
post :update_problem_count, problem_count: 2
|
||||
post :update_problem_count, params: { problem_count: 2 }
|
||||
assert_redirected_to controller: 'admin/dashboard', action: 'index'
|
||||
assert_equal 3, Problem.count
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user