Update rails and code

This commit is contained in:
pfischbeck committed 2017-11-23 13:52:13 +01:00
1 parent 8334baff99
commit 95bb01b440
30 files changed
+340 -152

No files matched your search

@@ -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
@@ -14,7 +14,7 @@ class Admin::TranslationsControllerTest < ActionController::TestCase
end
test "should show translation" do
get :show, id: @translation
get :show, params: { id: @translation }
assert_response :success
end