demarches-normaliennes/spec/lib/tasks/populate_zones_spec.rb
2021-12-15 19:37:32 +01:00

11 lines
252 B
Ruby

describe 'populate_zones' do
let(:rake_task) { Rake::Task['populate_zones'] }
subject(:run_task) do
rake_task.invoke
end
it 'populates zones' do
run_task
expect(Zone.find_by(acronym: 'PM').label).to eq "Premier ministre"
end
end