Commit a6b8d36a authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix specs

parent ecee0577
...@@ -31,9 +31,6 @@ class Projects::PipelinesController < Projects::ApplicationController ...@@ -31,9 +31,6 @@ class Projects::PipelinesController < Projects::ApplicationController
end end
def show def show
respond_to do |format|
format.html
end
end end
def retry def retry
......
...@@ -55,7 +55,7 @@ class CommitStatus < ActiveRecord::Base ...@@ -55,7 +55,7 @@ class CommitStatus < ActiveRecord::Base
def self.stages def self.stages
# We group by stage name, but order stages by theirs' index # 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 end
def self.status_for_stage(stage) 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