Skip to content

Commit 601665c

Browse files
committed
Fix broken test that was testing broken behavior.
1 parent cf8001a commit 601665c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RubberduckTests/SourceControl/ChangesViewModelTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ public void Undo_UndoesChanges()
342342
Provider = _provider.Object
343343
};
344344

345-
var localLocation = "C:\\users\\desktop\\git\\";
345+
var localLocation = @"C:\users\desktop\git\";
346346

347347
_provider.Setup(git => git.Status()).Returns(fileStatusEntries);
348348
_provider.SetupGet(git => git.CurrentRepository).Returns(new Repository{LocalLocation = localLocation});
@@ -351,7 +351,7 @@ public void Undo_UndoesChanges()
351351
vm.UndoChangesToolbarButtonCommand.Execute(fileStatusEntries[0]);
352352

353353
//Assert
354-
_provider.Verify(git => git.Undo(localLocation + fileStatusEntries[0].FilePath));
354+
_provider.Verify(git => git.Undo(@"C:\users\desktop\git\module.bas"));
355355
}
356356

357357
[TestCategory("SourceControl")]

0 commit comments

Comments
 (0)