This is a common error.
I'll take a note: snowman2:
I got an error while writing a test for Rspec.
SyntaxError:
/Users/namae/projects/picapp/spec/models/user_spec.rb:8: syntax error, unexpected tIDENTIFIER, expecting end
...'New user registration' do
... ^~~~~
/Users/namae/projects/picapp/spec/models/user_spec.rb:20: syntax error, unexpected end, expecting end-of-input
end
^~~
It's a syntax error, as it says "Syntax Error" at the beginning. There are missing commas, missing spaces, and full-width spaces ... Then an error will occur.
It shouldn't be the case, but you have to be careful.
Recommended Posts