From 318f04e871a061ec548760ccbf350f4ecbeea48f Mon Sep 17 00:00:00 2001 From: GeorgeJahad Date: Mon, 25 Nov 2024 05:13:31 -0800 Subject: [PATCH] added missing audit log test (#98) * added missing test * cleanup --------- Co-authored-by: George Jahad --- test/models/audit_log_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/models/audit_log_test.rb b/test/models/audit_log_test.rb index 02e56c6..587e828 100644 --- a/test/models/audit_log_test.rb +++ b/test/models/audit_log_test.rb @@ -18,6 +18,12 @@ def setup end end + test "#new should not set attributes not in attributes argument" do + [ :error, :kv_path ].each do |key| + assert_nil @audit_log.send(key), "Attribute #{key} was not set correctly" + end + end + test "#valid? should be valid with valid attributes" do assert @audit_log.valid? end