Commit a6b8d36a authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix specs

parent ecee0577
......@@ -31,9 +31,6 @@ class Projects::PipelinesController < Projects::ApplicationController
end
def show
respond_to do |format|
format.html
end
end
def retry
......
......@@ -55,7 +55,7 @@ class CommitStatus < ActiveRecord::Base
def self.stages
# We group by stage name, but order stages by theirs' index
unscoped.where(id: all).group('stage').order('max(stage_idx)', 'stage').pluck('stage')
unscoped.where(id: all.ids).group('stage').order('max(stage_idx)', 'stage').pluck('stage')
end
def self.status_for_stage(stage)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment