diff --git a/app/helpers/rooms_helper.rb b/app/helpers/rooms_helper.rb index a202a4421..57c70305b 100644 --- a/app/helpers/rooms_helper.rb +++ b/app/helpers/rooms_helper.rb @@ -27,12 +27,4 @@ def sorted_frames_per_islet(frames, type_of_view) end end end - - def calculated_menu_width(islet) - frame_width = 76 - nb_of_frames = islet.bays.map { |b| b.bay_type.try(:size).to_i }.sum - nb_of_lanes = islet.bays.map(&:lane).max - frame_width * (((nb_of_frames) / nb_of_lanes) + 1) - end - end diff --git a/spec/helpers/rooms_helper_spec.rb b/spec/helpers/rooms_helper_spec.rb index c779ab4f9..0587b70ce 100644 --- a/spec/helpers/rooms_helper_spec.rb +++ b/spec/helpers/rooms_helper_spec.rb @@ -3,5 +3,11 @@ require "rails_helper" RSpec.describe RoomsHelper do + describe "frames_sort_order" do + pending + end + + describe "sorted_frames_per_islet" do + pending end end