diff --git a/app/helpers/shop_helper.rb b/app/helpers/shop_helper.rb index acdaa30c7b..fbd48f719f 100644 --- a/app/helpers/shop_helper.rb +++ b/app/helpers/shop_helper.rb @@ -1,13 +1,4 @@ module ShopHelper - def order_cycles_name_and_pickup_times(order_cycles) - order_cycles.map do |oc| - [ - pickup_time(oc), - oc.id - ] - end - end - def oc_select_options @order_cycles.map { |oc| { time: pickup_time(oc), id: oc.id } } end diff --git a/spec/helpers/shop_helper_spec.rb b/spec/helpers/shop_helper_spec.rb index 14dace89e3..660ab56257 100644 --- a/spec/helpers/shop_helper_spec.rb +++ b/spec/helpers/shop_helper_spec.rb @@ -2,14 +2,6 @@ require 'spec_helper' describe ShopHelper, type: :helper do - it "should build order cycle select options" do - distributor = create(:distributor_enterprise) - oc = create(:simple_order_cycle, distributors: [distributor]) - allow(helper).to receive(:current_distributor).and_return distributor - - expect(helper.order_cycles_name_and_pickup_times([oc])).to eq([[helper.pickup_time(oc), oc.id]]) - end - describe "shop_tabs" do context "distributor with groups" do let(:group) { create(:enterprise_group) }