Skip to content

Commit

Permalink
Remove unused method from rooms_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
B-Rass committed Oct 29, 2024
1 parent 6140ae0 commit 1d7ec46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/helpers/rooms_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions spec/helpers/rooms_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1d7ec46

Please sign in to comment.