From 8c994a5eda96cabef85817ec4294276bcbd3a9bb Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Mon, 2 Nov 2009 18:43:12 +0000 Subject: only test list old api for js query servers git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@832034 13f79535-47bb-0310-9956-ffa450edef68 --- test/query_server_spec.rb | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'test') diff --git a/test/query_server_spec.rb b/test/query_server_spec.rb index 42c7794c..8fc2ab43 100644 --- a/test/query_server_spec.rb +++ b/test/query_server_spec.rb @@ -647,16 +647,18 @@ describe "query server that exits" do @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 -- cgit v1.2.3