|
|
@ -36,9 +36,9 @@ describe CustomFieldsController do |
|
|
|
let(:cost_query) { FactoryGirl.build(:cost_query) } |
|
|
|
let(:cost_query) { FactoryGirl.build(:cost_query) } |
|
|
|
|
|
|
|
|
|
|
|
before do |
|
|
|
before do |
|
|
|
@controller.stub(:authorize) |
|
|
|
allow(@controller).to receive(:authorize) |
|
|
|
@controller.stub(:check_if_login_required) |
|
|
|
allow(@controller).to receive(:check_if_login_required) |
|
|
|
@controller.stub(:require_admin) |
|
|
|
allow(@controller).to receive(:require_admin) |
|
|
|
|
|
|
|
|
|
|
|
CostQuery::Filter::CustomFieldEntries.reset! |
|
|
|
CostQuery::Filter::CustomFieldEntries.reset! |
|
|
|
CostQuery::Filter::CustomFieldEntries.all |
|
|
|
CostQuery::Filter::CustomFieldEntries.all |
|
|
|