Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Write Our First Tests

Ashley Putnam
Ashley Putnam
399 Points

rspec test fail - failures includes invalid CSS

When running the rspec test, I get the following failures. I am not sure why it is generating sass errors. Also, per some other questions, there seem to be some issues in the create_spec.rb as far as page titles and capitalization. Which should I use?

treehouse:~/projects/odot (master) $ bin/rspec spec/features/todo_lists/create_spec.rb
F

Failures:

  1) Creating todo lists redirects to the todo list index page on success
     Failure/Error: visit "/todo_lists"
     ActionView::Template::Error:
       Invalid CSS after "  "sources": [": expected "|", was ""scaffolds.css...."
         (in /home/treehouse/projects/odot/app/assets/stylesheets/application.css)
     # (sass):75
     # ./app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___811900465__589121318'
     # ./spec/features/todo_lists/create_spec.rb:5:in `block (2 levels) in <top (required)>'

Finished in 0.20748 seconds
1 example, 1 failure

Failed examples:

rspec ./spec/features/todo_lists/create_spec.rb:4 # Creating todo lists redirects to the todo list index page on success

Randomized with seed 20857
Ashley Putnam
Ashley Putnam
399 Points

From the response, it looks like my failure is in the test in 'create_spec.rb'. I have tried various versions of the syntax for New todo_list (New Todo List, New todo list, etc.). I am not sure where the error is in my file.

My application is running fine in the browser. However, I can't get the test to run successfully.

Why not post your spec files code?