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

ilias Georgakopoulos
ilias Georgakopoulos
22,866 Points

Ruby Problem

I get these 3 errors and i can't locate the problem.

Can someone help me?

Thanks in advance.

c:\treebook>rake test Run options:

Running tests:

........................................

Finished tests in 0.849049s, 47.1115 tests/s, 60.0672 assertions/s.

40 tests, 51 assertions, 0 failures, 0 errors, 0 skips Run options:

Running tests:

.............................................F.....F..F...............

Finished tests in 2.252129s, 31.0817 tests/s, 50.1747 assertions/s.

1) Failure: test: #index when logged in accepted friendships should not display pending or active friend's names . (UserFriendshipsControllerTest) [c:/treebook/test/functional/user_friendships_controller_test.rb:1 15]: </Blocked/> expected to not match <"<!DOCTYPE html>\n<html>\n<head>\n <title>Treebook</title>\n <link href=\"/assets/application.css \" media=\"all\" rel=\"stylesheet\" type=\"text/css\" />\n <script src=\"/assets/application.js\" t ype=\"text/javascript\"></script>\n \n</head>\n<body>\n\n\t<div class=\"navbar navbar-fixed-top\">\ n\t\t\t<div class=\"navbar-inner\">\n\t\t\t\t\t<div class=\"container\">\n\t\t\t\t\t\t<a href=\"#\" class=\"brand\"> Treebook </a>\n\t\t\t\t\t\t<ul class=\"nav\">\n\t\t\t\t\t\t\t<li><a href=\"/statuse s\">All Statuses</a></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t<ul class=\"nav pull-right\">\n\t\t\t\t\t\ t\t<li><a href=\"/jasonseifer\">My Profile</a></li>\n\t\t\t\t\t\t\t<li><a href=\"/user_friendships\"

Friends</a></li>\n\t\t\t\t\t\t\t<li><a href=\"/users/edit\">Jason Seifer</a></li>\n\t\t\t\t\t\t\t<l i><a href=\"/logout\">Log Out</a></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\ t\t\t</div>\n\t<div class=\"container\">\n\t\t\n\t\t<div class=\"page-header\">\n <h1>Friends</h1>\ n</div>\n\n<div>\n <strong>Friend list:</strong>\n <a href=\"/user_friendships?list=blocked\">Bloc ked</a>\n <a href=\"/user_friendships?list=requested\">Requested</a>\n <a href=\"/user_friendships ?list=accepted\">Accepted</a>\n <a href=\"/user_friendships?list=pending\">Pending</a>\n</div>\n\n <div id=\"user_friendship_980190964\" class=\"friend row\">\n <div class=\"span1\">\n <a hr ef=\"/user18\"><img alt=\"9e6fa1f22a82ba2e61879025fd640a03\" src=\"http://gravatar.com/avatar/9e6fa1 f22a82ba2e61879025fd640a03\" /></a>\n </div>\n <div class=\"span7\">\n <strong>Active Fri end</strong><br />\n <em>Friendship started 2013-08-14 16:44:13 UTC.</em> <a href=\"/user_f riendships/user18/edit\">Update friendship</a>.\n </div>\n </div>\n\n\t</div>\n\n</body>\n</html \n">.

2) Failure: test: #index when logged in pending friendships should not display pending or active friend's names. (UserFriendshipsControllerTest) [c:/treebook/test/functional/user_friendships_controller_test.rb:77 ]: </Blocked/> expected to not match <"<!DOCTYPE html>\n<html>\n<head>\n <title>Treebook</title>\n <link href=\"/assets/application.css \" media=\"all\" rel=\"stylesheet\" type=\"text/css\" />\n <script src=\"/assets/application.js\" t ype=\"text/javascript\"></script>\n \n</head>\n<body>\n\n\t<div class=\"navbar navbar-fixed-top\">\ n\t\t\t<div class=\"navbar-inner\">\n\t\t\t\t\t<div class=\"container\">\n\t\t\t\t\t\t<a href=\"#\" class=\"brand\"> Treebook </a>\n\t\t\t\t\t\t<ul class=\"nav\">\n\t\t\t\t\t\t\t<li><a href=\"/statuse s\">All Statuses</a></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t<ul class=\"nav pull-right\">\n\t\t\t\t\t\ t\t<li><a href=\"/jasonseifer\">My Profile</a></li>\n\t\t\t\t\t\t\t<li><a href=\"/user_friendships\"

Friends</a></li>\n\t\t\t\t\t\t\t<li><a href=\"/users/edit\">Jason Seifer</a></li>\n\t\t\t\t\t\t\t<l i><a href=\"/logout\">Log Out</a></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\ t\t\t</div>\n\t<div class=\"container\">\n\t\t\n\t\t<div class=\"page-header\">\n <h1>Friends</h1>\ n</div>\n\n<div>\n <strong>Friend list:</strong>\n <a href=\"/user_friendships?list=blocked\">Bloc ked</a>\n <a href=\"/user_friendships?list=requested\">Requested</a>\n <a href=\"/user_friendships ?list=accepted\">Accepted</a>\n <a href=\"/user_friendships?list=pending\">Pending</a>\n</div>\n\n <div id=\"user_friendship_980190963\" class=\"friend row\">\n <div class=\"span1\">\n <a hr ef=\"/user35\"><img alt=\"913b2db075de4347d209fae0e31b2125\" src=\"http://gravatar.com/avatar/913b2d b075de4347d209fae0e31b2125\" /></a>\n </div>\n <div class=\"span7\">\n <strong>Pending Fr iend</strong><br />\n <em>Friendship is pending.</em> <a href=\"/user_friendships/user35/ed it\">Delete request</a>.\n </div>\n </div>\n\n\t</div>\n\n</body>\n</html>\n">.

3) Failure: test: #index when logged in requested friendships should not display pending or active friend's name s. (UserFriendshipsControllerTest) [c:/treebook/test/functional/user_friendships_controller_test.rb: 96]: </Blocked/> expected to not match <"<!DOCTYPE html>\n<html>\n<head>\n <title>Treebook</title>\n <link href=\"/assets/application.css \" media=\"all\" rel=\"stylesheet\" type=\"text/css\" />\n <script src=\"/assets/application.js\" t ype=\"text/javascript\"></script>\n \n</head>\n<body>\n\n\t<div class=\"navbar navbar-fixed-top\">\ n\t\t\t<div class=\"navbar-inner\">\n\t\t\t\t\t<div class=\"container\">\n\t\t\t\t\t\t<a href=\"#\" class=\"brand\"> Treebook </a>\n\t\t\t\t\t\t<ul class=\"nav\">\n\t\t\t\t\t\t\t<li><a href=\"/statuse s\">All Statuses</a></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t<ul class=\"nav pull-right\">\n\t\t\t\t\t\ t\t<li><a href=\"/jasonseifer\">My Profile</a></li>\n\t\t\t\t\t\t\t<li><a href=\"/user_friendships\"

Friends</a></li>\n\t\t\t\t\t\t\t<li><a href=\"/users/edit\">Jason Seifer</a></li>\n\t\t\t\t\t\t\t<l i><a href=\"/logout\">Log Out</a></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\ t\t\t</div>\n\t<div class=\"container\">\n\t\t\n\t\t<div class=\"page-header\">\n <h1>Friends</h1>\ n</div>\n\n<div>\n <strong>Friend list:</strong>\n <a href=\"/user_friendships?list=blocked\">Bloc ked</a>\n <a href=\"/user_friendships?list=requested\">Requested</a>\n <a href=\"/user_friendships ?list=accepted\">Accepted</a>\n <a href=\"/user_friendships?list=pending\">Pending</a>\n</div>\n\n <div id=\"user_friendship_980190965\" class=\"friend row\">\n <div class=\"span1\">\n <a hr ef=\"/user46\"><img alt=\"D76dcbe6c92c495372e369fe38f08afe\" src=\"http://gravatar.com/avatar/d76dcb e6c92c495372e369fe38f08afe\" /></a>\n </div>\n <div class=\"span7\">\n <strong>Requested Friend</strong><br />\n <em>Friendship requested.</em> <a href=\"/user_friendships/user46/e dit\">Accept Friendship</a>.\n </div>\n </div>\n\n\t</div>\n\n</body>\n</html>\n">.

70 tests, 113 assertions, 3 failures, 0 errors, 0 skips Run options:

Running tests:

.....

Finished tests in 0.741043s, 6.7472 tests/s, 12.1450 assertions/s.

5 tests, 9 assertions, 0 failures, 0 errors, 0 skips Errors running test:functionals! #<RuntimeError: Command failed with status (3): [ruby -I"lib;test" -I"C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.1.0/lib" "C:/RailsInstaller/Ruby1.9. 3/lib/ruby/gems/1.9.1/gems/rake-10.1.0/lib/rake/rake_test_loader.rb" "test/functional/**/*_test.rb" ]>

c:\treebook>

6 Answers

Andrew Chalkley
STAFF
Andrew Chalkley
Treehouse Guest Teacher

Hi ilias Georgakopoulos

Are you still having issues? Jason Seifer is on vacation at the moment.

Do you still need help?

Regards
Andrew

ilias Georgakopoulos
ilias Georgakopoulos
22,866 Points

Hi Andrew Chalkley

Yes i still get the same 3 errors but the app seems to run ok.

I am not in a hurry right now. I can wait for Jason to take a look when he returns.

I take some php courses for now.

Thanks for the response. Regards ilias

Chris .
Chris .
1,133 Points

Has anyone found an answer to these errors?

Andrew Butler
Andrew Butler
21,358 Points

I have the same error. I will post if I find it

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey all, if you are still having trouble can you post a link to your code on GitHub or zip it up and send it to help@teamtreehouse.com? Thanks!