Skip to content

Commit

Permalink
except is not supported in 2.7 replacing with tap and delete
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfloyd committed Oct 16, 2024
1 parent 6e59521 commit c93540d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/octokit/client/pull_requests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
end

context 'without line argument' do
let(:new_comment) { super().except(:line) }
let(:new_comment) { super().tap { |hash| hash.delete(:line) } }

it 'creates a new comment on a pull request at the file level' do
assert_requested :post, github_url("/repos/#{@test_repo}/pulls/#{@pull.number}/comments")
Expand Down

0 comments on commit c93540d

Please sign in to comment.