summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2009-11-02 18:43:12 +0000
committerJan Lehnardt <jan@apache.org>2009-11-02 18:43:12 +0000
commit8c994a5eda96cabef85817ec4294276bcbd3a9bb (patch)
treebf1a34fdb1e438574feb7b334fcd7c9e5b9e1be6 /test
parent72675d73f8e571b1a5555451f5c588225a157035 (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/query_server_spec.rb22
1 files changed, 12 insertions, 10 deletions
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