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 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...