no need for a named parameter
This commit is contained in:
parent
a63792b724
commit
f99b0cc585
|
@ -1,7 +1,7 @@
|
||||||
class ProjectHook < WebHook
|
class ProjectHook < WebHook
|
||||||
include TriggerableHooks
|
include TriggerableHooks
|
||||||
|
|
||||||
triggerable_hooks only: [
|
triggerable_hooks [
|
||||||
:push_hooks,
|
:push_hooks,
|
||||||
:tag_push_hooks,
|
:tag_push_hooks,
|
||||||
:issue_hooks,
|
:issue_hooks,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
class SystemHook < WebHook
|
class SystemHook < WebHook
|
||||||
include TriggerableHooks
|
include TriggerableHooks
|
||||||
|
|
||||||
triggerable_hooks only: [
|
triggerable_hooks [
|
||||||
:repository_update_hooks,
|
:repository_update_hooks,
|
||||||
:push_hooks,
|
:push_hooks,
|
||||||
:tag_push_hooks,
|
:tag_push_hooks,
|
||||||
|
|
|
@ -4,7 +4,7 @@ RSpec.describe TriggerableHooks do
|
||||||
before do
|
before do
|
||||||
class TestableHook < WebHook
|
class TestableHook < WebHook
|
||||||
include TriggerableHooks
|
include TriggerableHooks
|
||||||
triggerable_hooks only: [:push_hooks]
|
triggerable_hooks [:push_hooks]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue