scinote-web/spec/models/user_system_notification_spec.rb
Urban Rotnik 3e2c9934d0 Add SystemNotification model
- SystemNotifiction model with spec
- UserSystemNotification model for many-many association
2019-01-29 11:40:26 +01:00

16 lines
379 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
describe UserSystemNotification do
subject(:user_system_notification) { build :user_system_notification }
it 'is valid' do
expect(user_system_notification).to be_valid
end
describe 'Associations' do
it { is_expected.to belong_to(:user) }
it { is_expected.to belong_to(:system_notification) }
end
end