Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add Notification assoc tests

Kabiru Mwenja67f524a9c54d
diff --git a/spec/models/notification_spec.rb b/spec/models/notification_spec.rb
index 0007a19b60d..e615c033932 100644
--- a/spec/models/notification_spec.rb
+++ b/spec/models/notification_spec.rb
@@ -28,6 +28,13 @@
require "spec_helper"
RSpec.describe Notification do
+ describe "Associations" do
+ it { is_expected.to belong_to(:journal) }
+ it { is_expected.to belong_to(:resource) }
+ it { is_expected.to belong_to(:actor).class_name("User") }
+ it { is_expected.to belong_to(:recipient).class_name("User") }
+ end
+
describe "Enums" do
it do
expect(subject).to define_enum_for(:reason)