Fix filter category test

pull/6827/head
Alexander Bach 10 years ago
parent c99ea0d0d6
commit 327eb8ae74
  1. 3
      spec/models/cost_query/filter_spec.rb

@ -236,7 +236,8 @@ describe CostQuery, type: :model, reporting_query_helper: true do
end
it "filters category" do
category = create_matching_object_with_time_entries(:category, :category, 3)
category = FactoryGirl.create(:category, project: project)
create_work_packages_and_time_entries(3, category: category)
@query.filter :category_id, operator: '=', value: category.id
expect(@query.result.count).to eq(3)
end

Loading…
Cancel
Save