pools: disallow asterisks and numeric-only names.

This commit is contained in:
evazion
2017-08-10 18:37:22 -05:00
parent 3b9a54f681
commit 3b3abac8f6
3 changed files with 7 additions and 1 deletions

View File

@@ -263,6 +263,8 @@ class PoolTest < ActiveSupport::TestCase
context "when validating names" do
should_not allow_value("foo,bar").for(:name)
should_not allow_value("foo*bar").for(:name)
should_not allow_value("123").for(:name)
should_not allow_value("___").for(:name)
should_not allow_value(" ").for(:name)