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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![David Ho](https://secure.gravatar.com/avatar/e438d16fad5bb78e99ea27096de8b37f?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
David Ho
1,482 PointsRake 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
ts/show.html.erb_spec.rb
.*........*.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
ntrollers/todo_lists_controller_spec.rb:75)
...........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
trollers/todo_lists_controller_spec.rb:156)
.......
Pending:
TodoListsHelper add some examples to (or delete) C:/Treehouse/Project/odot/s
pec/helpers/todo_lists_helper_spec.rb
# No reason given
# ./spec/helpers/todo_lists_helper_spec.rb:14
TodoList add some examples to (or delete) C:/Treehouse/Project/odot/spec/mod
els/todo_list_spec.rb
# No reason given
# ./spec/models/todo_list_spec.rb:4
Deprecation Warnings:
How to get rid of this . Thank you.
1 Answer
![Justin Black](https://uploads.teamtreehouse.com/production/profile-photos/1880782/micro_CHOKELOGO.png)
Justin Black
24,793 PointsOpen 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")