Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Rake Spec .. 30 examples, 0 failures, 2 pending

I got an Error when Hit Rake Spec in command prompt:

C:\Treehouse\Project\odot (master)
λ rake spec
C:/Ruby21/bin/ruby.exe -S rspec ./spec/controllers/todo_lists_controller_spec.
rb ./spec/helpers/todo_lists_helper_spec.rb ./spec/models/todo_list_spec.rb ./
spec/requests/todo_lists_spec.rb ./spec/routing/todo_lists_routing_spec.rb ./s
pec/views/todo_lists/edit.html.erb_spec.rb ./spec/views/todo_lists/index.html.
erb_spec.rb ./spec/views/todo_lists/new.html.erb_spec.rb ./spec/views/todo_lis
.*........*.DEPRECATION WARNING: `named_routes.helpers` is deprecated, please
use `route_defined?(route_name)` to see if a named route was defined. (called
from block (4 levels) in <top (required)> at C:/Treehouse/Project/odot/spec/co
...........DEPRECATION WARNING: `named_routes.helpers` is deprecated, please u
se `route_defined?(route_name)` to see if a named route was defined. (called f
rom block (3 levels) in <top (required)> at C:/Treehouse/Project/odot/spec/con

  TodoListsHelper add some examples to (or delete) C:/Treehouse/Project/odot/s
    # No reason given
    # ./spec/helpers/todo_lists_helper_spec.rb:14
  TodoList add some examples to (or delete) C:/Treehouse/Project/odot/spec/mod
    # No reason given
    # ./spec/models/todo_list_spec.rb:4

Deprecation Warnings:

How to get rid of this . Thank you.

1 Answer

Justin Black
Justin Black
24,266 Points

Open the associated files that it lists, and remove the block of code that looks like this:

pending "add some examples to (or delete) #{FILE}"

As far as the deprecation warnings, I can't exactly remember what I changed to fix those. But they are in the todo_lists_controller spec file at line 75 and 156...

156 i believe was changing to:

response.should redirect_to("/todo_lists")