diff options
author | Ronald van Eede <rveede@tricode.nl> | 2013-08-09 20:14:02 +0200 |
---|---|---|
committer | Ronald van Eede <rveede@tricode.nl> | 2013-08-09 22:02:34 +0200 |
commit | 62ba789545555dbed2df5e21d3db4dcb54b1bbae (patch) | |
tree | bdacc75fde534a9a8504890b78560df6a17b8e62 /app/models/service.rb | |
parent | 0a53e47bae31d3f7d84acc3dd7ec2c19f5d0460a (diff) | |
download | gitlab-ce-62ba789545555dbed2df5e21d3db4dcb54b1bbae.tar.gz |
Added can_test? mehod to Service model and added tests
Diffstat (limited to 'app/models/service.rb')
-rw-r--r-- | app/models/service.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/service.rb b/app/models/service.rb index d21e8a2c567..540aaad1ce5 100644 --- a/app/models/service.rb +++ b/app/models/service.rb @@ -49,4 +49,8 @@ class Service < ActiveRecord::Base def execute # implement inside child end + + def can_test? + !project.empty_repo? + end end |