Order-dependent spec failure on master: spec/controllers/admin/hooks_controller_spec.rb
master is failing on spec/controllers/admin/hooks_controller_spec.rb
Failures:
1) Admin::HooksController POST #create sets all parameters
Failure/Error: expect(SystemHook.first).to have_attributes(hook_params)
expected #<SystemHook id: 10, project_id: nil, created_at: "2018-11-01 07:08:19", updated_at: "2018-11-01 07:0...lter: nil, encrypted_token: nil, encrypted_token_iv: nil, encrypted_url: nil, encrypted_url_iv: nil> to have attributes {: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} but had attributes {:enable_ssl_verification => true, :token => nil, :url => nil, :push_events => true, :tag_push_events => true, :repository_update_events => true, :merge_requests_events => true}
Diff:
@@ -3,6 +3,6 @@
:push_events => true,
:repository_update_events => true,
:tag_push_events => true,
-:token => "TEST TOKEN",
-:url => "http://example.com",
+:token => nil,
+:url => nil,
# ./spec/controllers/admin/hooks_controller_spec.rb:27:in `block (3 levels) in <top (required)>'