Merge pull request #6764 from betagouv/fix-zone-specs
This commit is contained in:
commit
c89af2dfc6
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue