Skip to content
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

Merged
merged 3 commits into from Jan 29, 2017
Merged

Removes assert do ... end #3922

merged 3 commits into from Jan 29, 2017

Conversation

TheLonelyGhost
Copy link
Contributor

Discussion on #3921.

it do ... end provides a drop-in replacement for assert do ... end, ergo it is replaced in all areas where it is used.

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
Copy link
Contributor

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
Copy link
Contributor

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.

@asterite asterite added this to the Next milestone Jan 29, 2017
@asterite
Copy link
Member

@TheLonelyGhost Thank you!

@asterite asterite merged commit 566bd74 into crystal-lang:master Jan 29, 2017
asterite added a commit that referenced this pull request Jan 29, 2017
Sija pushed a commit to Sija/crystal that referenced this pull request Jan 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants