diff options
-rw-r--r-- | test/query_server_spec.rb | 22 |
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 |