* Remove obsolete SiteConfig values * Remove DUS * fixup! Remove obsolete SiteConfig values * fixup! Remove obsolete SiteConfig values * Add DUS for removing SiteConfig values * Fix specs * Fix specs * Clean up more DUS * Update DUS * Fix remaining spec * Remove leftover spec * Fix more specs * Fix spec * Remove deprecated spec * Rearrange specs * Temporarily disable specs
17 lines
445 B
Ruby
17 lines
445 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe Settings::Community do
|
|
describe "validating emojis strings" do
|
|
it "allows emoji-only strings" do
|
|
expect do
|
|
described_class.community_emoji = "💯"
|
|
end.not_to raise_error
|
|
end
|
|
|
|
it "rejects non emoji-only strings" do
|
|
expect do
|
|
described_class.community_emoji = "abc"
|
|
end.to raise_error(/contains non-emoji characters or invalid emoji/)
|
|
end
|
|
end
|
|
end
|