FEATURE: allow for a localized error when a regex fails in site settings

FEATURE: apply string validation to list site settings (so we get regex)
This commit is contained in:
Sam
2015-02-27 11:45:56 +11:00
parent ea40dd08e6
commit 0742f340f9
7 changed files with 26 additions and 4 deletions

View File

@ -63,7 +63,7 @@ describe SiteSetting do
end
describe "top_menu" do
before(:each) { SiteSetting.top_menu = 'one,-nope|two|three,-not|four,ignored|category/xyz' }
before { SiteSetting.top_menu = 'one,-nope|two|three,-not|four,ignored|category/xyz|latest' }
describe "items" do
let(:items) { SiteSetting.top_menu_items }