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

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,793 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")