spec/gitlab/client/system_hooks_spec.rb in gitlab-3.5.0 vs spec/gitlab/client/system_hooks_spec.rb in gitlab-3.6.0
- old
+ new
@@ -14,11 +14,11 @@
it "should get the correct resource" do
expect(a_get("/hooks")).to have_been_made
end
- it "should return an array of system hooks" do
- expect(@hooks).to be_an Array
+ it "should return a paginated response of system hooks" do
+ expect(@hooks).to be_a Gitlab::PaginatedResponse
expect(@hooks.first.url).to eq("http://example.com/hook")
end
end
describe ".add_hook" do