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