diff --git a/spec/features/admin/subscriptions_spec.rb b/spec/features/admin/subscriptions_spec.rb index cd54157e3d..af9c7b8eaa 100644 --- a/spec/features/admin/subscriptions_spec.rb +++ b/spec/features/admin/subscriptions_spec.rb @@ -433,7 +433,7 @@ feature 'Subscriptions' do end describe "allowed variants" do - let!(:customer) { create(:customer, enterprise: shop, allow_charges: true) } + let!(:customer) { create(:customer, enterprise: shop) } let!(:credit_card) { create(:stored_credit_card, user: customer.user) } let!(:shop_product) { create(:product, supplier: shop) } let!(:shop_variant) { create(:variant, product: shop_product, unit_value: "2000") } @@ -470,6 +470,7 @@ feature 'Subscriptions' do end it "permit creating and editing of the subscription" do + customer.update_attributes(allow_charges: true) # Fill in other details fill_in_subscription_basic_details click_button "Next"