Commit 305064a6 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix invalid description in commit status specs

parent 8ac0f2d3
...@@ -29,7 +29,7 @@ class CommitStatus < ActiveRecord::Base ...@@ -29,7 +29,7 @@ class CommitStatus < ActiveRecord::Base
end end
scope :exclude_ignored, -> do scope :exclude_ignored, -> do
# We want to ignore failed_but_allowed jobs # We want to ignore failed but allowed to fail jobs
where("allow_failure = ? OR status IN (?)", where("allow_failure = ? OR status IN (?)",
false, all_state_names - [:failed, :canceled, :manual]) false, all_state_names - [:failed, :canceled, :manual])
end end
......
...@@ -158,7 +158,7 @@ describe CommitStatus, :models do ...@@ -158,7 +158,7 @@ describe CommitStatus, :models do
end end
end end
describe '.exclude_ignored' do describe '.after_stage' do
subject { described_class.after_stage(0) } subject { described_class.after_stage(0) }
let(:statuses) do let(:statuses) do
......
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