Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused method from rooms_helper
Browse files Browse the repository at this point in the history
B-Rass committed Oct 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 7acf040 commit bf7c9db
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
@@ -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
@@ -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 bf7c9db

Please sign in to comment.