Skip to content

Commit

Permalink
rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianAppDev committed Sep 18, 2024
1 parent 3501181 commit 2da029f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
1 change: 0 additions & 1 deletion app/models/room.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class Room < ApplicationRecord
validates :name, presence: true
validates :friendly_id, presence: true, uniqueness: true
validates :meeting_id, presence: true, uniqueness: true
# validates :voice_bridge, uniqueness: true
validates :presentation,
content_type: Rails.configuration.uploads[:presentations][:formats],
size: { less_than: Rails.configuration.uploads[:presentations][:max_size] }
Expand Down
7 changes: 2 additions & 5 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions spec/models/room_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,6 @@
expect(room.voice_bridge).to be_present
end
end

it 'prevents duplicate voice_briges' do
duplicate_room = create(:room)
unless Rails.application.config.voice_bridge_phone_number.nil?
expect { duplicate_room.voice_bridge = room.voice_bridge }.to change { duplicate_room.valid? }.to false
end
end
end
end

Expand Down

0 comments on commit 2da029f

Please sign in to comment.