From 4fe5e609672ba0195b7f5f4884c979ae9e0d20ed Mon Sep 17 00:00:00 2001 From: Matt-Yorkley Date: Tue, 20 Dec 2016 16:30:17 +0000 Subject: [PATCH] Updated controller stub to pass test --- spec/controllers/shops_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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