fix zone specs
by reenabling task before the next spec is run
This commit is contained in:
parent
a633f3eb37
commit
f9609b0b0b
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