Skip to content

Commit c93540d

Browse files
committed
except is not supported in 2.7 replacing with tap and delete
1 parent 6e59521 commit c93540d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/octokit/client/pull_requests_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
end
122122

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

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

0 commit comments

Comments
 (0)