-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removes assert do ... end
#3922
Conversation
return unless Spec.matches?(description, file, line, end_line) | ||
|
||
Spec.formatters.each(&.before_example(description)) | ||
|
||
Spec::RootContext.report(:pending, description, file, line) | ||
end | ||
|
||
# @deprecated Please use {#it} instead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use DEPRECATED
special markdown tag so the generated code will receive the proper visual handling.
Also use backtick to refer to another method like it
.
See the documentation section for more details on the recommended doc style:
https://crystal-lang.org/docs/conventions/documenting_code.html
Cheers.
return unless Spec.matches?(description, file, line, end_line) | ||
|
||
Spec.formatters.each(&.before_example(description)) | ||
|
||
Spec::RootContext.report(:pending, description, file, line) | ||
end | ||
|
||
# DEPRECATED Please use `#it` instead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's colon :
missing after the flag name.
@TheLonelyGhost Thank you! |
…xisting code. Related to #3922
…xisting code. Related to crystal-lang#3922
Discussion on #3921.
it do ... end
provides a drop-in replacement forassert do ... end
, ergo it is replaced in all areas where it is used.