fix zone specs

by reenabling task before the next spec is run
This commit is contained in:
Christophe Robillard 2021-12-21 10:49:36 +01:00 committed by Pierre de La Morinerie
parent a633f3eb37
commit f9609b0b0b
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