diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-14 16:04:12 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-14 16:04:12 +0300 |
commit | b964c6c579f57f1ff83eb27caf8ff7f7be6d7671 (patch) | |
tree | 474c1c80acc8b0d5759cf895f612404e0cd01edc /app | |
parent | 8759770c962f7b6fe509a2d650dd420f75864de6 (diff) |
Add grouping tests
Diffstat (limited to 'app')
-rw-r--r-- | app/models/commit_status.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb index af739342256..1ae1a24c168 100644 --- a/app/models/commit_status.rb +++ b/app/models/commit_status.rb @@ -96,7 +96,7 @@ class CommitStatus < ActiveRecord::Base end def group_name - name.gsub(/\d+[\s:]+\d+\s*/, '') + name.gsub(/\d+[\s:\/\\]+\d+\s*/, '').strip end def self.stages @@ -117,6 +117,10 @@ class CommitStatus < ActiveRecord::Base allow_failure? && (failed? || canceled?) end + def playable? + false + end + def duration calculate_duration end |