Skip to content

Commit 941f076

Browse files
committed
t mv command changed due to ImageWebReporter copyToClipboard button
1 parent e7d283c commit 941f076

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[with spaces.txt, with spaces.txt, true] => move /Y "with spaces.txt" "with spaces.txt"
2-
[with spaces.txt, with spaces.txt, false] => mv "with spaces.txt" "with spaces.txt"
2+
[with spaces.txt, with spaces.txt, false] => mv -f "with spaces.txt" "with spaces.txt"
33
[with spaces.txt, withoutSpaces.txt, true] => move /Y "with spaces.txt" "withoutSpaces.txt"
4-
[with spaces.txt, withoutSpaces.txt, false] => mv "with spaces.txt" withoutSpaces.txt
4+
[with spaces.txt, withoutSpaces.txt, false] => mv -f "with spaces.txt" withoutSpaces.txt
55
[withoutSpaces.txt, with spaces.txt, true] => move /Y "withoutSpaces.txt" "with spaces.txt"
6-
[withoutSpaces.txt, with spaces.txt, false] => mv withoutSpaces.txt "with spaces.txt"
6+
[withoutSpaces.txt, with spaces.txt, false] => mv -f withoutSpaces.txt "with spaces.txt"
77
[withoutSpaces.txt, withoutSpaces.txt, true] => move /Y "withoutSpaces.txt" "withoutSpaces.txt"
8-
[withoutSpaces.txt, withoutSpaces.txt, false] => mv withoutSpaces.txt withoutSpaces.txt
8+
[withoutSpaces.txt, withoutSpaces.txt, false] => mv -f withoutSpaces.txt withoutSpaces.txt
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
11
package org.approvaltests.reporters;
22

33
import org.approvaltests.combinations.CombinationApprovals;
4+
import org.junit.jupiter.api.Disabled;
45
import org.junit.jupiter.api.Test;
6+
import org.junit.jupiter.api.condition.EnabledOnOs;
7+
8+
import static org.junit.jupiter.api.condition.OS.LINUX;
9+
import static org.junit.jupiter.api.condition.OS.MAC;
10+
import static org.junit.jupiter.api.condition.OS.WINDOWS;
511

612
class ClipboardReporterTest
713
{
14+
@EnabledOnOs({MAC, LINUX})
815
@Test
916
void commandLineMoves()
1017
{
1118
String[] files = {"with spaces.txt", "withoutSpaces.txt"};
1219
Boolean[] systems = {true, false};
1320
CombinationApprovals.verifyAllCombinations(ClipboardReporter::getAcceptApprovalText, files, files, systems);
1421
}
22+
@Disabled("TODO: find a windows user for this test")
23+
@EnabledOnOs(WINDOWS)
24+
@Test
25+
void commandLineMovesWindows()
26+
{
27+
String[] files = {"with spaces.txt", "withoutSpaces.txt"};
28+
Boolean[] systems = {true, false};
29+
CombinationApprovals.verifyAllCombinations(ClipboardReporter::getAcceptApprovalText, files, files, systems);
30+
}
1531
}

0 commit comments

Comments
 (0)