GitBranchWorkerTest: use "/" to calculate relative path: all paths are taken from VirtualFile here.

This commit is contained in:
Kirill.Likhodedov
2012-10-12 14:40:13 +04:00
parent 2f20db7f44
commit 9147f810fe
@@ -289,7 +289,7 @@ class GitBranchWorkerTest {
assertTrue "Untracked files dialog was not shown", untrackedFiles != null
assertEquals "Incorrect set of untracked files was shown in the dialog",
untracked,
untrackedFiles.collect { FileUtil.getRelativePath(myCommunity.root.path, it.path, File.separatorChar) }
untrackedFiles.collect { FileUtil.getRelativePath(myCommunity.root.path, it.path, '/'.toCharacter()) }
}
@Test
@@ -323,7 +323,7 @@ class GitBranchWorkerTest {
assertEquals "Incorrect set of local changes was shown in the dialog",
localChanges,
changes.collect({
FileUtil.getRelativePath(myUltimate.root.path, it.afterRevision.file.path, File.separatorChar) }
FileUtil.getRelativePath(myUltimate.root.path, it.afterRevision.file.path, '/'.toCharacter()) }
).sort()
}
}