From ca9af59663fdc42f53d0850e4b1bc1e4c4e6dff5 Mon Sep 17 00:00:00 2001 From: Adrian Lanning Date: Sat, 1 Aug 2015 08:42:04 +0800 Subject: [PATCH 1/2] correct inverted test function name Based on this [article](http://robert-kowalski.de/blog/lets-learn-erlang-and-fix-a-bug-on-a-couchdb-cluster/), the function is ensuring that a username is returned. Just removed the "not" from the test function name. --- test/couchdb_auth_tests.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/couchdb_auth_tests.erl b/test/couchdb_auth_tests.erl index 61aedbc4..3fb41e89 100644 --- a/test/couchdb_auth_tests.erl +++ b/test/couchdb_auth_tests.erl @@ -40,7 +40,7 @@ auth_test_() -> } }. -should_not_return_username_on_post_to_session(Url) -> +should_return_username_on_post_to_session(Url) -> ?_assertEqual(<<"rocko">>, begin ok = config:set("admins", "rocko", "artischocko", false), From 4812a176ec17bd17b6c44dfd0730c1513fb4197d Mon Sep 17 00:00:00 2001 From: Adrian Lanning Date: Tue, 4 Aug 2015 18:12:15 +0800 Subject: [PATCH 2/2] correct the test function call to use the proper name --- test/couchdb_auth_tests.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/couchdb_auth_tests.erl b/test/couchdb_auth_tests.erl index 3fb41e89..e1b5e335 100644 --- a/test/couchdb_auth_tests.erl +++ b/test/couchdb_auth_tests.erl @@ -34,7 +34,7 @@ auth_test_() -> foreach, fun setup/0, fun teardown/1, [ - fun should_not_return_username_on_post_to_session/1 + fun should_return_username_on_post_to_session/1 ] } }