Merge pull request #54 from finnlabs/feature/rspec-3

RSpec 3.2 Upgrade
pull/6827/head
Alex Coles 10 years ago
commit 0efcb338b8
  1. 6
      spec/controllers/custom_fields_controller_spec.rb

@ -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

Loading…
Cancel
Save