spec/github/repos/hooks/edit_spec.rb in github_api-0.9.0 vs spec/github/repos/hooks/edit_spec.rb in github_api-0.9.1
- old
+ new
@@ -38,10 +38,10 @@
expect { subject.edit }.to raise_error(ArgumentError)
end
it "should fail to edit resource without 'name' parameter" do
expect{
- subject.edit user, repo, inputs.except(:name)
+ subject.edit user, repo, hook_id, inputs.except(:name)
}.to raise_error(Github::Error::RequiredParams)
end
it "should fail to edit resource without 'hook_id'" do
expect { subject.edit user, repo }.to raise_error(ArgumentError)