Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistServiceTest.java2
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/GistService.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistServiceTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistServiceTest.java
index abc59384..b88f31c9 100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistServiceTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/GistServiceTest.java
@@ -518,6 +518,8 @@ public class GistServiceTest {
PageIterator<Gist> iterator = gistService.pageGists("user");
assertNotNull(iterator);
assertTrue(iterator.hasNext());
+ assertEquals(Utils.page("/users/user/gists"), iterator.getRequest()
+ .generateUri());
}
/**
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/GistService.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/GistService.java
index 393f801c..da048e64 100644
--- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/GistService.java
+++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/GistService.java
@@ -170,9 +170,7 @@ public class GistService extends GitHubService {
* @throws IOException
*/
public List<Gist> getGists(String user) throws IOException {
- PagedRequest<Gist> request = createUserGistRequest(user, PAGE_FIRST,
- PAGE_SIZE);
- return getAll(request);
+ return getAll(pageGists(user));
}
/**

Back to the top