summaryrefslogtreecommitdiff
path: root/app/controllers/dashboard/todos_controller.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-06-09 18:12:00 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-06-09 18:23:19 -0400
commitf2dee8e8555409d3b1d333703581c6d62166cf83 (patch)
tree6096261b6d7aa2d15f1c51f8c3e671f19ff40782 /app/controllers/dashboard/todos_controller.rb
parentb16730fc8317b282d5dc86dbc8936c74303f5a36 (diff)
downloadgitlab-ce-f2dee8e8555409d3b1d333703581c6d62166cf83.tar.gz
Test todos_count_format helper at the correct level to improve speedrs-simplify-todo-count-spec
Instead of an integration test that creates 101 Todo records to test a simple view helper, just unit test the helper.
Diffstat (limited to 'app/controllers/dashboard/todos_controller.rb')
-rw-r--r--app/controllers/dashboard/todos_controller.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/controllers/dashboard/todos_controller.rb b/app/controllers/dashboard/todos_controller.rb
index 623392c1240..28c90548cc1 100644
--- a/app/controllers/dashboard/todos_controller.rb
+++ b/app/controllers/dashboard/todos_controller.rb
@@ -47,11 +47,6 @@ class Dashboard::TodosController < Dashboard::ApplicationController
render json: todos_counts
end
- # Used in TodosHelper also
- def self.todos_count_format(count)
- count >= 100 ? '99+' : count
- end
-
private
def find_todos