diff options
author | John Keiser <john@johnkeiser.com> | 2015-09-25 07:20:03 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-09-25 12:22:19 -0700 |
commit | af422456552b8a64cb3ea90167a0f80f401790cf (patch) | |
tree | 7d5edfd97aefaf4884c6f941070ca12df58fffe6 /spec | |
parent | 424b2dda9b4a2a0ca3e7ca8c9a598643b303ec0f (diff) | |
download | chef-af422456552b8a64cb3ea90167a0f80f401790cf.tar.gz |
Fix up property deprecation text
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/property_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/property_spec.rb b/spec/unit/property_spec.rb index ebf94c1dd0..6415286397 100644 --- a/spec/unit/property_spec.rb +++ b/spec/unit/property_spec.rb @@ -949,19 +949,19 @@ describe "Chef::Resource.property" do context "default ordering deprecation warnings" do it "emits a deprecation warning for property :x, default: 10, #{name}: true" do expect { resource_class.property :x, :default => 10, name.to_sym => true }.to raise_error Chef::Exceptions::DeprecatedFeatureError, - /Cannot specify keys default, #{name} together on property x--only one \(default\) will be obeyed./ + /Cannot specify keys default, #{name} together on property x. Only one \(default\) will be obeyed./ end it "emits a deprecation warning for property :x, default: nil, #{name}: true" do expect { resource_class.property :x, :default => nil, name.to_sym => true }.to raise_error Chef::Exceptions::DeprecatedFeatureError, - /Cannot specify keys default, #{name} together on property x--only one \(#{name}\) will be obeyed./ + /Cannot specify keys default, #{name} together on property x. Only one \(#{name}\) will be obeyed./ end it "emits a deprecation warning for property :x, #{name}: true, default: 10" do expect { resource_class.property :x, name.to_sym => true, :default => 10 }.to raise_error Chef::Exceptions::DeprecatedFeatureError, - /Cannot specify keys #{name}, default together on property x--only one \(#{name}\) will be obeyed./ + /Cannot specify keys #{name}, default together on property x. Only one \(#{name}\) will be obeyed./ end it "emits a deprecation warning for property :x, #{name}: true, default: nil" do expect { resource_class.property :x, name.to_sym => true, :default => nil }.to raise_error Chef::Exceptions::DeprecatedFeatureError, - /Cannot specify keys #{name}, default together on property x--only one \(#{name}\) will be obeyed./ + /Cannot specify keys #{name}, default together on property x. Only one \(#{name}\) will be obeyed./ end end context "default ordering" do |