Author: jan
Date: Mon Nov 2 18:43:12 2009
New Revision: 832034
URL: http://svn.apache.org/viewvc?rev=832034&view=rev
Log:
only test list old api for js query servers
Modified:
couchdb/trunk/test/query_server_spec.rb
Modified: couchdb/trunk/test/query_server_spec.rb
URL:
http://svn.apache.org/viewvc/couchdb/trunk/test/query_server_spec.rb?rev=832034&r1=832033&r2=832034&view=diff
==============================================================================
--- couchdb/trunk/test/query_server_spec.rb (original)
+++ couchdb/trunk/test/query_server_spec.rb Mon Nov 2 18:43:12 2009
@@ -647,16 +647,18 @@
@qs.close
end
- describe "old style list" do
- before(:each) do
- @fun = functions["list-old-style"][LANGUAGE]
- @qs.reset!
- @qs.add_fun(@fun).should == true
- end
- it "should get a warning" do
- resp = @qs.run(["list", {"foo"=>"bar"}, {"q" => "ok"}])
- resp["error"].should == "render_error"
- #resp["reason"].should include("the list API has changed")
+ if LANGUAGE == "js"
+ describe "old style list" do
+ before(:each) do
+ @fun = functions["list-old-style"][LANGUAGE]
+ @qs.reset!
+ @qs.add_fun(@fun).should == true
+ end
+ it "should get a warning" do
+ resp = @qs.run(["list", {"foo"=>"bar"}, {"q" => "ok"}])
+ resp["error"].should == "render_error"
+ resp["reason"].should include("the list API has changed")
+ end
end
end