Enable vouchers feature toggle when running vouchers specs

This commit is contained in:
Gaetan Craig-Riou
2023-03-08 10:40:33 +11:00
parent 7dc5bc87d1
commit 3b7aebd6da

View File

@@ -12,6 +12,10 @@ describe '
let(:enterprise) { create(:supplier_enterprise, name: 'Feedme') }
let(:voucher_code) { 'awesomevoucher' }
before do
Flipper.enable(:vouchers)
end
it 'lists enterprise vouchers' do
# Given an enterprise with vouchers
Voucher.create!(enterprise: enterprise, code: voucher_code)