Skip to content

Commit 06bbc65

Browse files
committed
Fix lint error
1 parent ecffdc6 commit 06bbc65

1 file changed

Lines changed: 21 additions & 19 deletions

File tree

spec/spec_helper.rb

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -61,28 +61,30 @@ def if_exec_next(exec_next_value, legacy_value)
6161
TESTING_EXEC_NEXT ? exec_next_value : legacy_value
6262
end
6363

64-
class Minitest::Test
65-
# These tests are skipped but should be fixed at some point
66-
def exec_next_TODO(message) # rubocop:disable Naming/MethodName
67-
skip("TODO: " + message) if TESTING_EXEC_NEXT
68-
end
64+
module Minitest
65+
class Test
66+
# These tests are skipped but should be fixed at some point
67+
def exec_next_TODO(message) # rubocop:disable Naming/MethodName
68+
skip("TODO: " + message) if TESTING_EXEC_NEXT
69+
end
6970

70-
# These tests are skipped and probably won't be fixed, but they're worth reviewing
71-
def exec_next_WONTFIX(message) # rubocop:disable Naming/MethodName
72-
skip("WONTFIX: " + message) if TESTING_EXEC_NEXT
73-
end
71+
# These tests are skipped and probably won't be fixed, but they're worth reviewing
72+
def exec_next_WONTFIX(message) # rubocop:disable Naming/MethodName
73+
skip("WONTFIX: " + message) if TESTING_EXEC_NEXT
74+
end
7475

75-
# These tests don't run on legacy runtime
76-
def exec_next_only(message)
77-
skip("Exec-next only: #{message}") unless TESTING_EXEC_NEXT
78-
end
76+
# These tests don't run on legacy runtime
77+
def exec_next_only(message)
78+
skip("Exec-next only: #{message}") unless TESTING_EXEC_NEXT
79+
end
7980

80-
# Exec-next annotates errors; use this to help produce those different error messages for assertions
81-
def exec_next_error_message(field_path, message)
82-
if TESTING_EXEC_NEXT
83-
"Resolving #{field_path}: #{message}"
84-
else
85-
message
81+
# Exec-next annotates errors; use this to help produce those different error messages for assertions
82+
def exec_next_error_message(field_path, message)
83+
if TESTING_EXEC_NEXT
84+
"Resolving #{field_path}: #{message}"
85+
else
86+
message
87+
end
8688
end
8789
end
8890
end

0 commit comments

Comments
 (0)