api: Improve test for selective API auth logging.
authorBrett Smith <brett@curoverse.com>
Fri, 11 Apr 2014 13:20:35 +0000 (09:20 -0400)
committerBrett Smith <brett@curoverse.com>
Fri, 11 Apr 2014 13:20:35 +0000 (09:20 -0400)
services/api/test/unit/log_test.rb

index 39b45a326f0bab86b796882e7576ca24ea92721b..cf744bab7b9aa6136afadd345d15d36c8e0e08b5 100644 (file)
@@ -196,7 +196,6 @@ class LogTest < ActiveSupport::TestCase
                  "log count changed after 'using' ApiClientAuthorization")
     auth.created_by_ip_address = '::1'
     auth.save!
-    assert_equal(start_log_count + 1, get_logs_about(auth).size,
-                 "no log after changed stable ApiClientAuthorization attribute")
+    assert_logged(auth, :update)
   end
 end