spec/gitlab/client/namespaces_spec.rb in gitlab-3.5.0 vs spec/gitlab/client/namespaces_spec.rb in gitlab-3.6.0
- old
+ new
@@ -11,11 +11,11 @@
it "should get the correct resource" do
expect(a_get("/namespaces")).to have_been_made
end
- it "should return an array of namespaces" do
- expect(@namespaces).to be_an Array
+ it "should return a paginated response of namespaces" do
+ expect(@namespaces).to be_a Gitlab::PaginatedResponse
expect(@namespaces.first.path).to eq("john")
expect(@namespaces.first.kind).to eq("user")
end
end
end