couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject fabric commit: updated refs/heads/master to 17f0377
Date Tue, 22 Sep 2015 13:18:22 GMT
Repository: couchdb-fabric
Updated Branches:
  refs/heads/master 34e7c2620 -> 17f037780


fix assertions: first arg is 'expected'


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/17f03778
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/17f03778
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/17f03778

Branch: refs/heads/master
Commit: 17f0377807804b7b55db6c6b378d9e266ea52236
Parents: 34e7c26
Author: Robert Newson <rnewson@apache.org>
Authored: Tue Sep 22 14:18:07 2015 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Tue Sep 22 14:18:07 2015 +0100

----------------------------------------------------------------------
 src/fabric_db_create.erl | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/17f03778/src/fabric_db_create.erl
----------------------------------------------------------------------
diff --git a/src/fabric_db_create.erl b/src/fabric_db_create.erl
index 63e6864..a7f4ed9 100644
--- a/src/fabric_db_create.erl
+++ b/src/fabric_db_create.erl
@@ -182,8 +182,8 @@ db_exists_for_existing_db_test() ->
         [#shard{dbname = DbName, range = [0,100]}]
     end,
     ok = meck:expect(mem3, shards, Mock),
-    ?assertEqual(db_exists(<<"foobar">>), true),
-    ?assertEqual(meck:validate(mem3), true),
+    ?assertEqual(true, db_exists(<<"foobar">>)),
+    ?assertEqual(true, meck:validate(mem3)),
     stop_meck_().
 
 db_exists_for_missing_db_test() ->
@@ -192,8 +192,8 @@ db_exists_for_missing_db_test() ->
         erlang:error(database_does_not_exist, DbName)
     end,
     ok = meck:expect(mem3, shards, Mock),
-    ?assertEqual(db_exists(<<"foobar">>), false),
-    ?assertEqual(meck:validate(mem3), false),
+    ?assertEqual(false, db_exists(<<"foobar">>)),
+    ?assertEqual(false, meck:validate(mem3)),
     stop_meck_().
 
 start_meck_() ->


Mime
View raw message