diff options
author | Kevin Sawicki | 2011-04-27 19:15:55 +0000 |
---|---|---|
committer | Kevin Sawicki | 2011-04-27 19:15:55 +0000 |
commit | a4642193cb73b4c89f51640087033b124e67d725 (patch) | |
tree | 0e687bd89e1955dced4f8d3afff01ce5b3f74836 /org.eclipse.mylyn.github.tests | |
parent | f1928ad3d1cfdbb83bc4e30a11488a1b3d1bf7c5 (diff) | |
download | egit-github-a4642193cb73b4c89f51640087033b124e67d725.tar.gz egit-github-a4642193cb73b4c89f51640087033b124e67d725.tar.xz egit-github-a4642193cb73b4c89f51640087033b124e67d725.zip |
Remove use of gist repo field.
It was a duplicate of the id field and is
being dropped from the API.
Change-Id: I0c3f12e2f95939ed256153c4f1d80b7db9ed77df
Signed-off-by: Kevin Sawicki <kevin@github.com>
Diffstat (limited to 'org.eclipse.mylyn.github.tests')
-rw-r--r-- | org.eclipse.mylyn.github.tests/src/org/eclipse/mylyn/github/internal/GistServiceTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.github.tests/src/org/eclipse/mylyn/github/internal/GistServiceTest.java b/org.eclipse.mylyn.github.tests/src/org/eclipse/mylyn/github/internal/GistServiceTest.java index 0d95bae3..e751ab59 100644 --- a/org.eclipse.mylyn.github.tests/src/org/eclipse/mylyn/github/internal/GistServiceTest.java +++ b/org.eclipse.mylyn.github.tests/src/org/eclipse/mylyn/github/internal/GistServiceTest.java @@ -112,18 +112,18 @@ public class GistServiceTest { } @Test(expected = AssertionFailedException.class) - public void updateGist_NullRepository() throws IOException { + public void updateGist_NullId() throws IOException { Gist gist = new Gist(); - gist.setRepo(null); + gist.setId(null); gistService.updateGist(gist); } @Test public void updateGist_OK() throws IOException { Gist gist = new Gist(); - gist.setRepo("test_repository"); + gist.setId("123"); gistService.updateGist(gist); - verify(gitHubClient).put("/gists/test_repository.json", gist, + verify(gitHubClient).put("/gists/123.json", gist, Gist.class); } |