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
|
subject(:run_task) do
|
||||||
rake_task.invoke
|
rake_task.invoke
|
||||||
end
|
end
|
||||||
|
after(:each) do
|
||||||
|
rake_task.reenable
|
||||||
|
end
|
||||||
|
|
||||||
it 'populates zones' do
|
it 'populates zones' do
|
||||||
run_task
|
run_task
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
describe UpdateZoneToProceduresService do
|
describe UpdateZoneToProceduresService do
|
||||||
before(:all) do
|
before(:each) do
|
||||||
Rake::Task['zones:populate_zones'].invoke
|
Rake::Task['zones:populate_zones'].invoke
|
||||||
end
|
end
|
||||||
|
|
||||||
after(:all) do
|
after(:each) do
|
||||||
Zone.destroy_all
|
Rake::Task['zones:populate_zones'].reenable
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '#call' do
|
describe '#call' do
|
||||||
|
|
Loading…
Add table
Reference in a new issue