forked from External/greenlight
Added validation for name: Should not include a http(s) url (#2114)
This commit is contained in:
@ -27,6 +27,7 @@ describe User, type: :model do
|
||||
context 'validations' do
|
||||
it { should validate_presence_of(:name) }
|
||||
it { should validate_length_of(:name).is_at_most(256) }
|
||||
it { should_not allow_value("https://www.bigbluebutton.org").for(:name) }
|
||||
|
||||
it { should validate_presence_of(:provider) }
|
||||
|
||||
|
Reference in New Issue
Block a user