Merge pull request #6764 from betagouv/fix-zone-specs

This commit is contained in:
Pierre de La Morinerie 2021-12-23 10:04:30 +01:00 committed by GitHub
commit c89af2dfc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -3,6 +3,9 @@ describe 'populate_zones' do
subject(:run_task) do
rake_task.invoke
end
after(:each) do
rake_task.reenable
end
it 'populates zones' do
run_task

View file

@ -1,10 +1,10 @@
describe UpdateZoneToProceduresService do
before(:all) do
before(:each) do
Rake::Task['zones:populate_zones'].invoke
end
after(:all) do
Zone.destroy_all
after(:each) do
Rake::Task['zones:populate_zones'].reenable
end
describe '#call' do