0
votes

i can't run my Rspec user_spec.rb test due to a syntax error. i already try to add and deletes some "end" but it seem the problem still not resolve.


this is my static_pages_spec.rb


this is my first question so maybe it a little weird.

2
Please include the source. And, indentation usually solves such trivial problems. - Dave Newton

2 Answers

0
votes

Your do/ends appear to match to me. Does the syntax error specify a line number? I noticed two potential issues on line 25 and 48 from your pastebin link.

expect(page) .to have_content( 'Help' )

should be

expect(page).to have_content( 'Help' )

Also

expect(page) .to have_content( 'About Us' )

should be

expect(page).to have_content( 'About Us' )
-1
votes

Try with only a single require statement and a single describe block.