File tree Expand file tree Collapse file tree 4 files changed +23
-20
lines changed
rspec-ruby/retest/retest_test
ruby-app/retest/retest_test Expand file tree Collapse file tree 4 files changed +23
-20
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,4 @@ def test_with_no_command
19
19
20
20
assert_match "Test File Selected: spec/bottles_spec.rb" , @output . read
21
21
end
22
-
23
- def test_help
24
- @output , @pid = launch_retest 'retest --help'
25
-
26
- assert_match <<~EXPECTED , @output . read
27
- Usage: retest [OPTIONS] [COMMAND]
28
-
29
- Watch a file change and run it matching spec.
30
- EXPECTED
31
- end
32
22
end
Original file line number Diff line number Diff line change @@ -19,14 +19,4 @@ def test_with_no_command
19
19
20
20
assert_match "Test File Selected: test/bottles_test.rb" , @output . read
21
21
end
22
-
23
- def test_help
24
- @output , @pid = launch_retest 'retest --help'
25
-
26
- assert_match <<~EXPECTED , @output . read
27
- Usage: retest [OPTIONS] [COMMAND]
28
-
29
- Watch a file change and run it matching spec.
30
- EXPECTED
31
- end
32
22
end
Original file line number Diff line number Diff line change
1
+ class TestHelpFlag < Minitest ::Test
2
+ def test_help
3
+ @output , @pid = launch_retest 'retest --help'
4
+
5
+ assert_match <<~EXPECTED , @output . read
6
+ Usage: retest [OPTIONS] [COMMAND]
7
+
8
+ Watch a file change and run it matching spec.
9
+ EXPECTED
10
+ end
11
+
12
+ def test_help_short_flag
13
+ @output , @pid = launch_retest 'retest -h'
14
+
15
+ assert_match <<~EXPECTED , @output . read
16
+ Usage: retest [OPTIONS] [COMMAND]
17
+
18
+ Watch a file change and run it matching spec.
19
+ EXPECTED
20
+ end
21
+ end
Original file line number Diff line number Diff line change 9
9
require_relative 'scenarios/force_polling.rb'
10
10
require_relative 'scenarios/interruptions.rb'
11
11
12
+ require_relative 'flags/help.rb'
13
+
12
14
$stdout. sync = true
13
15
14
16
include FileHelper
You can’t perform that action at this time.
0 commit comments