docbrown/spec/models/settings/community_spec.rb
Julianna Tetreault de4acd4fa5
Remove Community Emoji from Admin Config 🌱 (#16902)
* Removes all community_emoji-related code

* Removes community_emoji-related specs from codebase

* Updates communitySection.spec.js to test for member_label

* chore: merge conflicts

* feat: remove data update script

* chore: add file back

Co-authored-by: Ridhwana <ridhwana.khan16@gmail.com>
2022-08-30 17:16:58 +02:00

19 lines
522 B
Ruby

require "rails_helper"
RSpec.describe Settings::Community do
describe "validating community name" do
it "does not allow '<' nor '>' character" do
expect do
described_class.community_name = "<Hiya"
end.to raise_error(/may not include the "<" nor ">"/)
expect do
described_class.community_name = "Bya>"
end.to raise_error(/may not include the "<" nor ">"/)
expect do
described_class.community_name = "Hello Folks"
end.not_to raise_error
end
end
end