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 = ""/) 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