@ -22,6 +22,10 @@ describe CostQuery do
CostQuery.chain_initializer.clear
end
after(:all) do
it "should contain NoFilter" do
@query.chain.should be_a(CostQuery::Filter::NoFilter)
@ -106,7 +106,7 @@ describe CostQuery do
@query.filter "author_id", :value => object.id
@query.result.count.should == Entry.all.select { |i| i.issue and i.issue.author == object }.count
end\
it "filters spent_on" do
@query.filter :spent_on, :operator=> 'w'