Sha256: 6b438da3af75ff171ede70fc14e81642addbf8d684719d7ca7fcfe4d845ea820

Contents?: true

Size: 388 Bytes

Versions: 4

Compression:

Stored size: 388 Bytes

Contents

require 'rails_helper'

module CitizenBudgetModel
  RSpec.describe User, type: :model do
    describe '#create' do
      it 'should not require a password and send password reset instructions' do
        user = User.new(email: 'user@example.com')
        expect(user).to receive(:send_reset_password_instructions)
        expect{user.save!}.to_not raise_error
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citizen_budget_model-0.0.4 spec/models/citizen_budget_model/user_spec.rb
citizen_budget_model-0.0.3 spec/models/citizen_budget_model/user_spec.rb
citizen_budget_model-0.0.2 spec/models/citizen_budget_model/user_spec.rb
citizen_budget_model-0.0.1 spec/models/citizen_budget_model/user_spec.rb