Skip to content

Commit

Permalink
added missing audit log test (#98)
Browse files Browse the repository at this point in the history
* added missing test

* cleanup

---------

Co-authored-by: George Jahad <[email protected]>
  • Loading branch information
GeorgeJahad and George Jahad authored Nov 25, 2024
1 parent 9bef1bc commit 318f04e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/models/audit_log_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 318f04e

Please sign in to comment.