mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
Enable vouchers feature toggle when running vouchers specs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user