File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
spec/v3/services/requests Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 116
116
name : 'minimal' ,
117
117
slug : 'svenfuchs/minimal'
118
118
} ,
119
- request : payload
119
+ request : compact ( payload )
120
120
}
121
121
end
122
122
141
141
}
142
142
end
143
143
144
+ def compact ( hash )
145
+ hash . reject { |_ , value | value . nil? } . to_h
146
+ end
147
+
144
148
describe 'not authenticated' do
145
149
before { post ( "/v3/repo/#{ repo . id } /requests" ) }
146
150
207
211
208
212
describe 'overriding config' do
209
213
let ( :params ) { { config : { script : 'true' } } }
210
- it { expect ( sidekiq_payload ) . to eq payload . merge ( config : '{"script":"true"}' , configs : [ config : '{"script":"true"}' , merge_mode : nil ] ) }
214
+ it { expect ( sidekiq_payload ) . to eq payload . merge ( config : '{"script":"true"}' , configs : [ config : '{"script":"true"}' , mode : nil ] ) }
211
215
end
212
216
213
217
describe 'overriding message' do
You can’t perform that action at this time.
0 commit comments