diff options
author | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2017-12-18 13:14:51 +0300 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-01-17 11:55:00 +0300 |
commit | 337ced28bcdff25a2d2d4c726d37c782c4cc2d24 (patch) | |
tree | 21dc95292df2efc63d1a8b4ff2aa53578a966390 /spec/controllers/admin | |
parent | eb5e0e921c017322ad8f9122d897b0cf39c0b294 (diff) |
reference triggers.values for permitted parameters
Diffstat (limited to 'spec/controllers/admin')
-rw-r--r-- | spec/controllers/admin/hooks_controller_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/controllers/admin/hooks_controller_spec.rb b/spec/controllers/admin/hooks_controller_spec.rb index 090a51be7c3..d2c1e634930 100644 --- a/spec/controllers/admin/hooks_controller_spec.rb +++ b/spec/controllers/admin/hooks_controller_spec.rb @@ -11,12 +11,13 @@ describe Admin::HooksController do it 'sets all parameters' do hook_params = { enable_ssl_verification: true, + token: "TEST TOKEN", + url: "http://example.com", + push_events: true, tag_push_events: true, repository_update_events: true, - merge_requests_events: true, - token: "TEST TOKEN", - url: "http://example.com" + merge_requests_events: true } post :create, hook: hook_params |