Skip to content

Commit

Permalink
Fix test message
Browse files Browse the repository at this point in the history
  • Loading branch information
jez committed Jan 18, 2024
1 parent 5b01a53 commit b34f0b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/rubocop/cop/sorbet/signatures/void_checked_tests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

RSpec.describe(RuboCop::Cop::Sorbet::VoidCheckedTests, :config) do
def message
"Returning `.void` from a sig marked `.checked(:tests)` means that the" \
"method will return a different value in non-test environments (possibly" \
"with different truthiness). Either use `.returns(T.anything).checked(:tests)`" \
"Returning `.void` from a sig marked `.checked(:tests)` means that the " \
"method will return a different value in non-test environments (possibly " \
"with different truthiness). Either use `.returns(T.anything).checked(:tests)` " \
"to keep checking in tests, or `.void.checked(:never)` to leave it untouched."
end

Expand Down

0 comments on commit b34f0b0

Please sign in to comment.