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 trialAndrew Schrenk
11,557 PointsDeprecation Warning
When doing "rake spec", I received these deprecation warnings. Are they important and how do I resolve them? I also received a bunch of deprecation warnings regarding differences between RSpec 2 and RSpec 3 about certain things being changed in the newer version.
.*...DEPRECATION WARNING: named_routes.helpers
is deprecated, please use rout
e_defined?(route_name)
to see if a named route was defined. (called from block
(4 levels) in <top (required)> at D:/Documents/Projects/odot/spec/controllers/to
do_lists_controller_spec.rb:75)
..............DEPRECATION WARNING: named_routes.helpers
is deprecated, please
use route_defined?(route_name)
to see if a named route was defined. (called fr
om block (3 levels) in <top (required)> at D:/Documents/Projects/odot/spec/contr
ollers/todo_lists_controller_spec.rb:156)
1 Answer
Andrew Schrenk
11,557 PointsThanks for the answer Kelcey, That is not my problem, both match, but that does give me some hints of what types of things to be looking for. Thanks again!
Kelcey Wilson
15,738 PointsKelcey Wilson
15,738 PointsI had the same error -- I found the problem in my create_spec.rb file. I had typed the line
expect(page).to have_content("New todo_list")
as Jason had, but somewhere along the way, my page title had become "New Todo List", so I changed that line toexpect(page).to have_content("New Todo List")
and it worked.