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 User Authentication with Rails Password Hashing and Sign In Using has_secure_password

Mark Thomas
Mark Thomas
8,174 Points

`has_secure_password` doesn't cause all tests to fail

When I run rspec to run my tests without the has_secure_password method in the user.rb model, not all my tests fail. One does, but it's the before_save test that throws a false error, not the other errors that show in the video. Does anyone have any idea why? I do know that I am using a newer version of rspec, since I encountered a few tiny syntax differences (to_be is to be in rspec latest)

David Curtis
David Curtis
11,301 Points

i would post the code from the test so we can have a look