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 Building Social Features in Ruby on Rails Adding State Test Factories

Matius Kristyanto Mulyono
Matius Kristyanto Mulyono
1,855 Points

assert_select deprecated error message

hi all,

I get this error message when I'm trying to run the test for use_friendships_controller_test.rb

treebook$ rake test TEST=test/controllers/user_friendships_controller_test.rb Run options: --seed 56061

Running:

.........DEPRECATION WARNING: The assertion was not run because of an invalid css selector. unexpected '#' after '[#<Nokogiri::CSS::Node:0x007f16213ee188 @type=:CONDITIONAL_SELECTOR, @value=[#<Nokogiri::CSS::Node:0x007f16213ee200 @type=:ELEMENT_NAME, @value=["*"]>, #<Nokogiri::CSS::Node:0x007f16213ee750 @type=:ID, @value=["#user_friendship_"]>]>]' (called from block (3 levels) in <class:UserFriendshipsControllerTest> at /home/rndfm/Documents/kris/treebook1/treebook/test/controllers/user_friendships_controller_test.rb:35) .............

Finished in 0.945229s, 23.2748 runs/s, 37.0281 assertions/s.

22 runs, 35 assertions, 0 failures, 0 errors, 0 skips

does anyone know how to fix this?

thanks

1 Answer

Matius Kristyanto Mulyono
Matius Kristyanto Mulyono
1,855 Points

well i thought it was an error at first...but it was just a warning and i can ignore it though...