diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-05 09:24:57 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-06 10:04:04 +0100 |
commit | e4554925011eef2be49fd10bd10cde2139342780 (patch) | |
tree | 08a7f7eafca5494225ad9cbc917a6fd44eb4d3cf /app/models/concerns/has_status.rb | |
parent | 57253f04c931fa15c3b6aaacd51e971f78425ccb (diff) | |
download | gitlab-ce-e4554925011eef2be49fd10bd10cde2139342780.tar.gz |
Extend specs for pipelines with manual blocking actions
Diffstat (limited to 'app/models/concerns/has_status.rb')
-rw-r--r-- | app/models/concerns/has_status.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/concerns/has_status.rb b/app/models/concerns/has_status.rb index 3c0a2e51685..b819947c9e6 100644 --- a/app/models/concerns/has_status.rb +++ b/app/models/concerns/has_status.rb @@ -96,6 +96,10 @@ module HasStatus COMPLETED_STATUSES.include?(status) end + def blocked? + BLOCKED_STATUS == status + end + private def calculate_duration |