Fix style

- `reorder(nil)` is better than `reorder('')`
- Only use ASCII in comments
This commit is contained in:
Sean McGivern 2016-06-01 13:35:43 +01:00 committed by Alfredo Sumaran
parent b28237b4d2
commit 1cc0209a80
2 changed files with 3 additions and 2 deletions

View File

@ -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]

View File

@ -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')