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

Ruby on Rails

Hey, Does anybody know exactly which files were modified in between the ruby Intermedial social Features badge and the Advanced Social Features badge? So I can go back in and edit the correct files without having to look at every single file?

I edited a lot of stuff to my specification during the badges so I don't just want to replace all the files...

I went ahead and changed all of the files and only got one testing error in the User_friendships_controller_test file

it reads

1) Failure: 
test: #create when logged in with a valid friend_id should set the flash success message (UserFriendshipsControllerTest
[/Users/justinlicata/Documents/ruby/treebook/test/functional/user_friendships_controller_test.rb:248
<"Friend request sent."> expected but was
<"Friend request sent">.

Does anyone from just looking at that know where I possibly could have gone wrong?

That reads to me like you just missed a period in the user_friendship_controller create action? Something like-

def create
  #....
  flash[:success] = "Friend request sent."
end

I think would work. Just adding the period.

-twiz

1 Answer

Yea I messed up something simple! I fixed it though and now back up and running..

thanks Twiz

Cool, been there for sure. Indescribable feeling when all tests pass!

Ha! You can say that again...especially when you decide to test all files with a bin/rake and they all work