Skip to content

Commit b863ba3

Browse files
author
Rynaard Burger
committed
Fix rubocop offenses
1 parent 173f1c2 commit b863ba3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec/github_helper_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -411,16 +411,16 @@ def create_milestone(due_date:, days_until_submission:, days_until_release:)
411411
end
412412

413413
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)
416416
create_release
417417
end
418418

419419
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)
422422
create_release(is_draft: false)
423-
end
423+
# end
424424

425425
def create_release(assets: [], is_draft: true)
426426
helper = described_class.new(github_token: 'Fake-GitHubToken-123')
@@ -457,4 +457,4 @@ def create_release(assets: [], is_draft: true)
457457
expect(described_class.github_token_config_item.data_type).to eq(String)
458458
end
459459
end
460-
end
460+
end

0 commit comments

Comments
 (0)