Commit 57253f04 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix specs for detailed statuses for manual actions

parent 17faa8a2
...@@ -4,8 +4,8 @@ module HasStatus ...@@ -4,8 +4,8 @@ module HasStatus
DEFAULT_STATUS = 'created'.freeze DEFAULT_STATUS = 'created'.freeze
BLOCKED_STATUS = 'manual'.freeze BLOCKED_STATUS = 'manual'.freeze
AVAILABLE_STATUSES = %w[created pending running success failed canceled skipped manual].freeze AVAILABLE_STATUSES = %w[created pending running success failed canceled skipped manual].freeze
STARTED_STATUSES = %w[running success failed skipped].freeze STARTED_STATUSES = %w[running success failed skipped manual].freeze
ACTIVE_STATUSES = %w[pending running manual].freeze ACTIVE_STATUSES = %w[pending running].freeze
COMPLETED_STATUSES = %w[success failed canceled skipped].freeze COMPLETED_STATUSES = %w[success failed canceled skipped].freeze
ORDERED_STATUSES = %w[manual failed pending running canceled success skipped].freeze ORDERED_STATUSES = %w[manual failed pending running canceled success skipped].freeze
......
...@@ -76,7 +76,6 @@ FactoryGirl.define do ...@@ -76,7 +76,6 @@ FactoryGirl.define do
end end
trait :playable do trait :playable do
skipped
manual manual
end end
......
...@@ -192,7 +192,7 @@ describe Gitlab::Ci::Status::Build::Factory do ...@@ -192,7 +192,7 @@ describe Gitlab::Ci::Status::Build::Factory do
let(:build) { create(:ci_build, :playable) } let(:build) { create(:ci_build, :playable) }
it 'matches correct core status' do it 'matches correct core status' do
expect(factory.core_status).to be_a Gitlab::Ci::Status::Skipped expect(factory.core_status).to be_a Gitlab::Ci::Status::Manual
end end
it 'matches correct extended statuses' do it 'matches correct extended statuses' do
...@@ -218,7 +218,7 @@ describe Gitlab::Ci::Status::Build::Factory do ...@@ -218,7 +218,7 @@ describe Gitlab::Ci::Status::Build::Factory do
let(:build) { create(:ci_build, :playable, :teardown_environment) } let(:build) { create(:ci_build, :playable, :teardown_environment) }
it 'matches correct core status' do it 'matches correct core status' do
expect(factory.core_status).to be_a Gitlab::Ci::Status::Skipped expect(factory.core_status).to be_a Gitlab::Ci::Status::Manual
end end
it 'matches correct extended statuses' do it 'matches correct extended 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