spec/user_spec.rb in clearance-1.10.1 vs spec/user_spec.rb in clearance-1.11.0

- old
+ new

@@ -83,9 +83,18 @@ user.update_password("new_password") expect(user.confirmation_token).to be_nil end + + it "sets the remember token" do + user = create(:user, :with_forgotten_password) + + user.update_password("my_new_password") + + user.reload + expect(user.remember_token).not_to be_nil + end end context "with blank password" do it "does not change the encrypted password" do user = create(:user, :with_forgotten_password)