summaryrefslogtreecommitdiff
path: root/spec/unit/exceptions_spec.rb
diff options
context:
space:
mode:
authorNick Stielau <nick.stielau@gmail.com>2013-01-08 09:40:17 -0800
committerBryan McLellan <btm@opscode.com>2013-05-30 09:41:13 -0700
commit43464b477554908940ce0dc5fa995bd056b4cf30 (patch)
tree080ff3a26672c47c7a3c7d7e4c04629cf68ba54c /spec/unit/exceptions_spec.rb
parent9ca147c954ff5e93c2c5d80263486bbfbbbc4666 (diff)
downloadchef-43464b477554908940ce0dc5fa995bd056b4cf30.tar.gz
Raising an exception for chef-solo environment constraints.
Diffstat (limited to 'spec/unit/exceptions_spec.rb')
-rw-r--r--spec/unit/exceptions_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/exceptions_spec.rb b/spec/unit/exceptions_spec.rb
index fdf515de54..3e7b1ba93f 100644
--- a/spec/unit/exceptions_spec.rb
+++ b/spec/unit/exceptions_spec.rb
@@ -65,7 +65,9 @@ describe Chef::Exceptions do
Chef::Exceptions::SolrConnectionError => RuntimeError,
Chef::Exceptions::InvalidDataBagPath => ArgumentError,
Chef::Exceptions::InvalidEnvironmentPath => ArgumentError,
- Chef::Exceptions::EnvironmentNotFound => RuntimeError
+ Chef::Exceptions::EnvironmentNotFound => RuntimeError,
+ Chef::Exceptions::InvalidVersionConstraint => ArgumentError,
+ Chef::Exceptions::IllegalVersionConstraint => NotImplementedError
}
exception_to_super_class.each do |exception, expected_super_class|