Skip to content

Commit 9bf38cf

Browse files
committed
Fix jruby failure.
1 parent 54f86b9 commit 9bf38cf

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

spec/unit/client/orgs/hooks/delete_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
require 'spec_helper'
44

55
RSpec.describe Github::Client::Orgs::Hooks, '#delete' do
6-
let(:org) { 'API-sampler' }
6+
let(:org_name) { 'API-sampler' }
77
let(:hook_id) { 1 }
8-
let(:request_path) { "/orgs/#{org}/hooks/#{hook_id}" }
8+
let(:request_path) { "/orgs/#{org_name}/hooks/#{hook_id}" }
99

1010
before {
1111
stub_delete(request_path).to_return(body: body, status: status,
@@ -23,16 +23,16 @@
2323
end
2424

2525
it "fails to delete resource without 'hook_id'" do
26-
expect { subject.delete(org) }.to raise_error(ArgumentError)
26+
expect { subject.delete(org_name) }.to raise_error(ArgumentError)
2727
end
2828

2929
it "deletes the resource" do
30-
subject.delete(org, hook_id)
30+
subject.delete(org_name, hook_id)
3131
expect(a_delete(request_path)).to have_been_made
3232
end
3333
end
3434

3535
it_should_behave_like 'request failure' do
36-
let(:requestable) { subject.delete org, hook_id }
36+
let(:requestable) { subject.delete org_name, hook_id }
3737
end
3838
end # delete

0 commit comments

Comments
 (0)