spec/models/logical/naf/construction_zone/boss_spec.rb in naf-2.1.12 vs spec/models/logical/naf/construction_zone/boss_spec.rb in naf-2.1.13
- old
+ new
@@ -30,9 +30,14 @@
it 'return correct number of historical jobs' do
::Naf::HistoricalJob.should have(num_records).records
end
end
+ before do
+ ::Naf::HistoricalJob.delete_all
+ ::Naf::ApplicationType.all
+ end
+
describe '#enqueue_application' do
let(:application) { FactoryGirl.create(:application) }
let(:prereq) { FactoryGirl.create(:job) }
let!(:job) {
boss.enqueue_application(application,