summaryrefslogtreecommitdiff
path: root/spec/unit/settings/enum_setting_spec.rb
AgeCommit message (Collapse)AuthorFilesLines
2013-08-15(#22205) Add enum setting typeAndrew Parker1-0/+27
It is often useful to be able to restrict the valid values for a setting to a known set. This adds an :enum setting type that can take a :values array, which defines the allowed values. If the value given for the setting is now found in the list of allowed values, then it will throw an error.