diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/view_server/query_server_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/view_server/query_server_spec.rb b/test/view_server/query_server_spec.rb index 4697efca..0d443567 100644 --- a/test/view_server/query_server_spec.rb +++ b/test/view_server/query_server_spec.rb @@ -606,10 +606,9 @@ describe "query server normal case" do before(:all) do @fun = functions["filter-basic"][LANGUAGE] @qs.reset! - @qs.add_fun(@fun).should == true end it "should only return true for good docs" do - @qs.run(["filter", [{"key"=>"bam", "good" => true}, {"foo" => "bar"}, {"good" => true}], {"req" => "foo"}]). + @qs.run(["filter", @fun, [{"key"=>"bam", "good" => true}, {"foo" => "bar"}, {"good" => true}], {"req" => "foo"}]). should == [true, [true, false, true]] end end |