Sha256: 5c79ea97c35354afb60b9c87f4d70823e24f803d7bd2f231d087e50d31d13f0f
Contents?: true
Size: 721 Bytes
Versions: 4
Compression:
Stored size: 721 Bytes
Contents
require "test_helper" if DEVISE_ORM == :neo4j class RecoverableTest < ActiveSupport::TestCase undef :test_should_save_the_model_when_the_reset_password_sent_at_doesnt_exist test 'should save the model when the reset_password_sent_at doesnt exist' do user = create_user user.stubs(:respond_to?) user.stubs(:respond_to?).with("email=").returns(true) user.stubs(:respond_to?).with(:updated_at).returns(false) user.stubs(:respond_to?).with(:reset_password_sent_at=).returns(false) user.stubs(:respond_to?).with(:headers_for).returns(false) user.send_reset_password_instructions user.reload assert_not_nil user.reset_password_token end end end
Version data entries
4 entries across 4 versions & 1 rubygems