@@ -411,16 +411,16 @@ def create_milestone(due_date:, days_until_submission:, days_until_release:)
411
411
end
412
412
413
413
it 'creates a draft release if is_draft is set to true' do
414
- options = { body : test_description , draft : true , name : test_tag , prerelease : false , target_commitish : test_target }
415
- expect ( client ) . to receive ( :create_release ) . with ( test_repo , test_tag , options )
414
+ options_draft_release = { body : test_description , draft : true , name : test_tag , prerelease : false , target_commitish : test_target }
415
+ expect ( client ) . to receive ( :create_release ) . with ( test_repo , test_tag , options_draft_release )
416
416
create_release
417
417
end
418
418
419
419
it 'creates a final (non-draft) release if is_draft is set to false' do
420
- options = { body : test_description , draft : false , name : test_tag , prerelease : false , target_commitish : test_target }
421
- expect ( client ) . to receive ( :create_release ) . with ( test_repo , test_tag , options )
420
+ options_final_release = { body : test_description , draft : false , name : test_tag , prerelease : false , target_commitish : test_target }
421
+ expect ( client ) . to receive ( :create_release ) . with ( test_repo , test_tag , options_final_release )
422
422
create_release ( is_draft : false )
423
- end
423
+ # end
424
424
425
425
def create_release ( assets : [ ] , is_draft : true )
426
426
helper = described_class . new ( github_token : 'Fake-GitHubToken-123' )
@@ -457,4 +457,4 @@ def create_release(assets: [], is_draft: true)
457
457
expect ( described_class . github_token_config_item . data_type ) . to eq ( String )
458
458
end
459
459
end
460
- end
460
+ end
0 commit comments