summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-10-10 15:24:06 -0700
committerTim Smith <tsmith@chef.io>2018-10-11 14:38:55 -0700
commitc29d12950e556f8e99efc03542d245606d5e7e1c (patch)
tree2aec27c47a86237e5de4f0599598a9fdd245661b /spec/unit
parent0c8f73047924ef49dc7b7bccdfb3325b15219d19 (diff)
downloadchef-better_regex_error.tar.gz
When a property regex fails don't call it an optionbetter_regex_error
These aren't options. These are properties. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/environment_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/environment_spec.rb b/spec/unit/environment_spec.rb
index a342d6d7cd..483ee615a2 100644
--- a/spec/unit/environment_spec.rb
+++ b/spec/unit/environment_spec.rb
@@ -317,7 +317,7 @@ describe Chef::Environment do
it "validates the name given in the params" do
expect(@environment.update_from_params(name: "@$%^&*()")).to be_falsey
- expect(@environment.invalid_fields[:name]).to eq(%q{Option name's value @$%^&*() does not match regular expression /^[\-[:alnum:]_]+$/})
+ expect(@environment.invalid_fields[:name]).to eq(%q{Property name's value @$%^&*() does not match regular expression /^[\-[:alnum:]_]+$/})
end
it "updates the description from parameters[:description]" do