summaryrefslogtreecommitdiff
path: root/spec/presenters/clusters/cluster_presenter_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Renames Cluster#managed? to provided_by_user?Mayra Cabrera2019-03-291-0/+16
| | | | | | This will allow to user the term managed? on https://gitlab.com/gitlab-org/gitlab-ce/issues/56557. Managed? will be used to distinct clusters that are automatically managed by GitLab
* Move code to presenterThong Kuah2018-12-171-1/+125
| | | | | | | | | | | | | | | Part of the code such as #show_path is already present on the presenter. Also avoid having code in two places (helper and presenter) Sanitize and assert html_safe. Additional layer of defense - on top of GitLab already requiring group names to be composed of small set of chars A-Z, - and spaces. Only link to cluster if user can read cluster Make clear that arg is a GroupClusterablePresenter Add more specs for completeness
* Move description of cluster type to presenterThong Kuah2018-12-131-0/+14
|
* Extend clusters_controller for group type clustersThong Kuah2018-11-081-0/+7
| | | | | | | | | - Add pages javascripts to intialize clusters for group pages - Move specs asserting gcp specific validations from controller into UpdateService spec - Also teach Clusters::ApplicationController about groups
* Move view and path concerns to presentersThong Kuah2018-11-011-1/+13
| | | | | | | - Move show path for cluster to ClusterPresenter - Create ClusterablePresenter to encapsulate logic. Consolidates scattered methods from BaseController and ClustersHelper into an object.
* Move can_toggle_cluster? from helper to presenterMatija Čupić2017-12-051-0/+40
|
* spec for spec/presentersShinya Maeda2017-10-311-0/+34