summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorDanilo Sousa <dsgoncalves@uoldiveo.com>2016-02-18 17:01:25 -0200
committerDanilo Sousa <dsgoncalves@uoldiveo.com>2016-02-18 17:01:25 -0200
commit695883a75783e19de70e60314fab49661c387a22 (patch)
tree6d1a73e712d824d0e28df6667e9f15731505e952 /lib/oxidized
parenta626c212f9e64434b828dadcb0cb3bd879beb612 (diff)
create tests for `GithubRepo#validate_cfg!` method
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/hook/githubrepo.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/hook/githubrepo.rb b/lib/oxidized/hook/githubrepo.rb
index 80ae665..0c98460 100644
--- a/lib/oxidized/hook/githubrepo.rb
+++ b/lib/oxidized/hook/githubrepo.rb
@@ -1,6 +1,6 @@
class GithubRepo < Oxidized::Hook
def validate_cfg!
- cfg.has_key?('remote_repo') or raise KeyError, 'remote_repo is required'
+ raise KeyError, 'hook.remote_repo is required' unless cfg.has_key?('remote_repo')
end
def run_hook(ctx)