Skip to content

Commit effb0be

Browse files
author
Vitaliy Boyko
committed
Fixed assertion for windows
1 parent d7842bf commit effb0be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/com/magento/idea/magento2plugin/actions/generation/generator/BaseGeneratorTestCase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ protected void assertGeneratedFileIsCorrect(
2828
String expectedDirectory,
2929
PsiFile resultFile) {
3030

31-
assertEquals(expectedDirectory, resultFile.getContainingDirectory().getVirtualFile().getPresentableUrl());
31+
assertTrue(resultFile.getContainingDirectory().getVirtualFile().getPresentableUrl()
32+
.endsWith(expectedDirectory));
3233
assertEquals(expectedFile.getText(), resultFile.getText());
3334
assertEquals(expectedFile.getName(), resultFile.getName());
3435
}

0 commit comments

Comments
 (0)