We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
do ... end
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
Normally, syntax_tree will convert single-line do...end into braces. For example:
do...end
- expect do blah end.to(eq(5)) + expect { blah }.to(eq(5))
However, if the parenthesis are missing from to() (as they often are in rspec code), no attempt is made to use braces. The code remains as
to()
expect do blah end.to eq(5)
Context: in Discourse we previously had a number of things like
That reads ok.
After syntax_tree formatting this has been moved onto a single line, and maintained the do ... end
which is not ideal.
The text was updated successfully, but these errors were encountered:
Hmm yeah, I'll need to see why it's doing that. As you say, it should be using braces here.
Sorry, something went wrong.
No branches or pull requests
Normally, syntax_tree will convert single-line
do...end
into braces. For example:However, if the parenthesis are missing from
to()
(as they often are in rspec code), no attempt is made to use braces. The code remains asContext: in Discourse we previously had a number of things like
That reads ok.
After syntax_tree formatting this has been moved onto a single line, and maintained the
do ... end
which is not ideal.
The text was updated successfully, but these errors were encountered: