Updated controller stub to pass test

This commit is contained in:
Matt-Yorkley
2016-12-20 16:30:17 +00:00
committed by Maikel Linke
parent f4eb9cb790
commit 4fe5e60967

View File

@@ -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