Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2012-07-30 17:04:37 +0000
committerKevin Sawicki2012-07-30 17:04:37 +0000
commit3bc3381b86e70d58c53b728a0d13092a0105fe21 (patch)
treed0026c879730b62be3b12ac43445118c1cc0ccfa /org.eclipse.egit.github.core.tests
parentd86f041d7fbc55c6c47213895da65974673125e5 (diff)
downloadegit-github-3bc3381b86e70d58c53b728a0d13092a0105fe21.tar.gz
egit-github-3bc3381b86e70d58c53b728a0d13092a0105fe21.tar.xz
egit-github-3bc3381b86e70d58c53b728a0d13092a0105fe21.zip
Use a POST instead of a PUT when editing repository hooks
Diffstat (limited to 'org.eclipse.egit.github.core.tests')
-rw-r--r--org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryServiceTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryServiceTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryServiceTest.java
index d4b76d25..e4a392e3 100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryServiceTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryServiceTest.java
@@ -573,7 +573,7 @@ public class RepositoryServiceTest {
RepositoryHook hook = new RepositoryHook();
hook.setId(5006);
service.editHook(repo, hook);
- verify(client).put("/repos/o/n/hooks/5006", hook, RepositoryHook.class);
+ verify(client).post("/repos/o/n/hooks/5006", hook, RepositoryHook.class);
}
/**

Back to the top