summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-06-01 13:35:43 +0100
committerAlfredo Sumaran <alfredo@gitlab.com>2016-06-06 11:59:49 -0500
commit1cc0209a8057c32cb7b073b822410f8b4c4ad3c9 (patch)
tree361014f992602a8c56a6d05322b5ee9137675655
parentb28237b4d269e1e191597324769113ee4254d7c3 (diff)
downloadgitlab-ce-1cc0209a8057c32cb7b073b822410f8b4c4ad3c9.tar.gz
Fix style
- `reorder(nil)` is better than `reorder('')` - Only use ASCII in comments
-rw-r--r--app/views/shared/_issues.html.haml2
-rw-r--r--spec/features/projects/labels/issues_sorted_by_priority_spec.rb3
2 files changed, 3 insertions, 2 deletions
diff --git a/app/views/shared/_issues.html.haml b/app/views/shared/_issues.html.haml
index 1150614c329..a5df502d7b5 100644
--- a/app/views/shared/_issues.html.haml
+++ b/app/views/shared/_issues.html.haml
@@ -1,4 +1,4 @@
-- if @issues.reorder('').any?
+- if @issues.reorder(nil).any?
- @issues.group_by(&:project).each do |group|
.panel.panel-default.panel-small
- project = group[0]
diff --git a/spec/features/projects/labels/issues_sorted_by_priority_spec.rb b/spec/features/projects/labels/issues_sorted_by_priority_spec.rb
index fac70087c0b..453ded8ee71 100644
--- a/spec/features/projects/labels/issues_sorted_by_priority_spec.rb
+++ b/spec/features/projects/labels/issues_sorted_by_priority_spec.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
require 'spec_helper'
feature 'Issue prioritization', feature: true do
@@ -72,7 +73,7 @@ feature 'Issue prioritization', feature: true do
issue_7.labels << label_2 # 5
issue_2.labels << label_3 # 6
issue_4.labels << label_4 # 7
- issue_6.labels << label_5 # 8 – No priority
+ issue_6.labels << label_5 # 8 - No priority
login_as user
visit namespace_project_issues_path(project.namespace, project, sort: 'priority')