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