Ruby on Rails Monday, December 29, 2014

On 28 December 2014 at 22:09, Etienne Brunet <etiennebrunet@gmail.com> wrote:
> Hi,
>
> I'm following the https://www.railstutorial.org
>
> I'm now at chapter 10. Since yesterday all my 42 tests are RED and reports
> the same error :
>
>
> ERROR["test_should_get_new", UsersControllerTest, 0.274138782]
> test_should_get_new#UsersControllerTest (0.27s)
> SyntaxError: SyntaxError: (erb):36: syntax error, unexpected tLABEL
> activated: true

The error says that you have got a syntax on line 36, but you have not
shown us the code which has the error. Show us that line (from
whichever file it says has the error) along with a few lines before it
as sometimes the error is actually on a preceding line, but it is not
obvious to Ruby that there is an error until it reads the next
line(s).

Which version of ruby are you using (ruby -v, run from the root folder
of the application). I assume you are running the test from that
folder.

> ^
> (erb):37: syntax error, unexpected ':', expecting ')'
> activated_at: <%= Time.zone.now ).to_s); _erbout.concat "\n"
> ^
> (erb):37: unterminated string meets end of file
>
>
>
> The app is working great.
>
> I'm on cloud9.
>
> I have restarted the server etc... same errors. Everything was working great
> since yesterday.

When running tests it is not necessary to have the server running.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuXHV9v7FhREZXd%2BCROjSxpYf39FGd%2Brbxp1z36e-Gifg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment