Permalink
Browse files

Generalize test assertion with respect to FleetDB version.

  • Loading branch information...
1 parent 7eef5ad commit 6855ab42dc84f7646e49b1013eb2ffd78f3e002c @mmcgrana committed Jul 15, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/fleetdb/server_test.clj
View
4 test/fleetdb/server_test.clj
@@ -43,8 +43,8 @@
(deftest "info"
(with-client client 3400
(client-write client "[\"info\"]\r\n")
- (assert= "[0,{\"persistent\":false,\"fleetdb-version\":\"0.2.0-RC2\"}]\r\n"
- (client-read client))))
+ (assert-match #"\[0\,\{\"persistent\":false\,\"fleetdb-version\":\"\d\.\d\.\d.*\"\}\]\r\n"
+ (client-read client))))
(deftest "valid query"
(with-client client 3400

0 comments on commit 6855ab4

Please sign in to comment.