require 'spec_helper'

describe Broker::AllocationsController do

  it_behaves_like 'a protected controller', :broker, :allocation, [:index, :edit, :update, :destroy] do
    let(:broker)            { Fabricate(:broker_with_regions) }
    let(:job)               { Fabricate(:job, provider: Fabricate(:provider, place: broker.places.first)) }
    let(:allocation)        { Fabricate(:allocation, job: job) }
    let(:allocation_attrs)  { Fabricate.attributes_for(:allocation) }
    let(:params)            { { job_id: job.id } }
  end

end

Add spec for broker allocation controller.
Add spec for broker allocation controller.
