From bf7c9dba04726bf1adbb39faeb339bca247cc56a Mon Sep 17 00:00:00 2001 From: B_Rass Date: Tue, 29 Oct 2024 11:44:44 +0100 Subject: [PATCH] Remove unused method from rooms_helper --- app/helpers/rooms_helper.rb | 8 -------- spec/helpers/rooms_helper_spec.rb | 6 ++++++ 2 files changed, 6 insertions(+), 8 deletions(-) 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