2020-03-07 06:48:16 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
RSpec.describe User do
|
|
|
|
let!(:account_user) { create(:account_user) }
|
|
|
|
|
|
|
|
describe 'notification_settings' do
|
|
|
|
it 'gets created with the right default settings' do
|
|
|
|
expect(account_user.user.notification_settings).not_to eq(nil)
|
|
|
|
|
2020-05-01 09:23:43 +00:00
|
|
|
expect(account_user.user.notification_settings.first.email_conversation_creation?).to eq(false)
|
|
|
|
expect(account_user.user.notification_settings.first.email_conversation_assignment?).to eq(true)
|
2020-03-07 06:48:16 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|