File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
spec/create_github_release/command_line Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 277277 before { options . pre = true }
278278
279279 it 'is expected NOT to be valid' do
280- expect ( subject ) . to have_attributes ( valid? : false , errors : [ /^--pre can only / , /^--pre-type can only / ] )
280+ expect ( subject ) . to have_attributes (
281+ valid? : false ,
282+ errors : match_array ( [ /^--pre can only / , /^--pre-type can only / ] )
283+ )
281284 end
282285 end
283286
297300 before { options . pre = true }
298301
299302 it 'is expected NOT to be valid' do
300- expect ( subject ) . to have_attributes ( valid? : false , errors : [ /^--pre can only / , /^--pre-type can only / ] )
303+ expect ( subject ) . to have_attributes (
304+ valid? : false ,
305+ errors : match_array ( [ /^--pre can only / , /^--pre-type can only / ] )
306+ )
301307 end
302308 end
303309
304310 context 'when pre is false' do
305311 before { options . pre = false }
306312
307313 it 'is expected NOT to be valid' do
308- expect ( subject ) . to have_attributes ( valid? : false , errors : [ /^--pre-type can only / ] )
314+ expect ( subject ) . to have_attributes (
315+ valid? : false , errors : [ /^--pre-type can only / ]
316+ )
309317 end
310318 end
311319 end
You can’t perform that action at this time.
0 commit comments