-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
adds SyntaxError and warning spec for not same line heredoc #794
adds SyntaxError and warning spec for not same line heredoc #794
Conversation
eval %{<<"HERE\n"\nHERE} | ||
}.should complain(/here document identifier ends with a newline/) | ||
end | ||
end |
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.
Just wording issue. It's common to write just it warns
or emits a warning
here in the specs
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.
Do you mean add the message in heredoc string itself?
If so, check please. I've just added it.
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.
No-no. I meant the wording in the spec description - it 'prints a warning
. It's not a problem and it's just a matter of taste .
language/heredoc_spec.rb
Outdated
end | ||
|
||
ruby_version_is ""..."2.7" do | ||
it 'prints a warning if identifier is ending not on same line' do |
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.
I think it's missing "quoted identifier"
@andrykonchin thanks for review so far! I've just added fixes you mentioned |
Thank you for the new specs. |
Sub task #745
Quoted here-document identifiers must end within the same line