diff --git a/spec/controllers/shops_controller_spec.rb b/spec/controllers/shops_controller_spec.rb index a4c66ea3a7..2e11011c57 100644 --- a/spec/controllers/shops_controller_spec.rb +++ b/spec/controllers/shops_controller_spec.rb @@ -6,7 +6,7 @@ describe ShopsController do let!(:invisible_distributor) { create(:distributor_enterprise, visible: false) } before do - Enterprise.stub(:distributors_with_active_order_cycles) { [distributor] } + Enterprise.stub_chain("distributors_with_active_order_cycles.andand.ready_for_checkout") { [distributor] } end # Exclusion from actual rendered view handled in features/consumer/home