Skip to content

Commit 79b8dae

Browse files
committed
fixup! Fix: specs on windows
1 parent 8ba1f79 commit 79b8dae

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/runnable_test.cr

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,9 @@ class RunnableTest < Minitest::Test
107107
stdout = execute("--verbose", pass: false)
108108
assert_match /ABCTest#test_error = [\d.]+ s = E/, stdout
109109
assert_match "Exception: oopsie\n", stdout
110-
{% if flag?(:windows) %}
111-
assert_match /test\\runnable_.+_test.cr:\d+ in 'test_error'/, stdout
112-
{% else %}
113-
assert_match /test\/runnable_.+_test.cr:\d+:\d+ in 'test_error'/, stdout
114-
{% end %}
110+
111+
path = Path.new("test", "runnable").to_s
112+
assert_match /#{path}_.+_test.cr:.* in 'test_error'/, stdout
115113
end
116114

117115
def test_skip

0 commit comments

Comments
 (0)