diff --git a/spec/octokit/client/pull_requests_spec.rb b/spec/octokit/client/pull_requests_spec.rb index 9f7e30681..0980f6d6b 100644 --- a/spec/octokit/client/pull_requests_spec.rb +++ b/spec/octokit/client/pull_requests_spec.rb @@ -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")