Fix testBlockRule_ParentBlocksChild() from RefControlTest

The assert was on force update which is not granted in this test.
Now it asserts on canUpdate() instead of canForceUpdate().

Change-Id: Ie8f0c90898ced045386cff044022da172b9f0f78
Signed-off-by: Eryk Szymanski <eryksz@gmail.com>
This commit is contained in:
Eryk Szymanski
2014-05-15 00:37:38 +02:00
committed by David Pursehouse
parent a83c222362
commit fa6756cf1d

View File

@@ -301,7 +301,7 @@ public class RefControlTest {
grant(util.getParentConfig(), PUSH, ANONYMOUS_USERS, "refs/tags/*").setBlock();
ProjectControl u = util.user(local, DEVS);
assertFalse("u can't force update tag", u.controlForRef("refs/tags/V10").canForceUpdate());
assertFalse("u can't update tag", u.controlForRef("refs/tags/V10").canUpdate());
}
@Test