Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tweak for CouchDB 0.11.

  • Loading branch information...
commit 5d522417cd318f29bbb139521fdc336db7f4327f 1 parent a74db3d
@paulcarey authored
Showing with 16 additions and 4 deletions.
  1. +12 −1 scratch/view_by_bench.rb
  2. +4 −3 spec/server_spec.rb
View
13 scratch/view_by_bench.rb
@@ -68,4 +68,15 @@
# Conclusion - if a penalty exists for using a delegator, it's minimal
# The simplification offered by a delegator to client code is well worth it
-#
+#
+
+# Ruby 1.8.7 with performance improvements
+# user system total real
+# delegator 6.450000 0.320000 6.770000 ( 10.544567)
+
+# Ruby 1.9.1 with performance enhancements
+# user system total real
+# delegator 6.870000 1.250000 8.120000 ( 11.528884)
+
+
+
View
7 spec/server_spec.rb
@@ -20,11 +20,12 @@
@server.get "/relaxdb_spec/foo"
end.should raise_error(RelaxDB::HTTP_404)
end
-
- it "should raise a RuntimeError for non specific errors" do
+
+ # Possibly redundant - a RelaxDB::HTTP_404 is raised with CouchDB 0.11
+ it "should raise an error for non specific errors" do
lambda do
@server.get "/relaxdb_spec/_design/spec_doc/_view?fail=true"
- end.should raise_error(RuntimeError)
+ end.should raise_error
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.