summaryrefslogtreecommitdiff
path: root/spec/unit/exceptions_spec.rb
diff options
context:
space:
mode:
authorNick Stielau <nick.stielau@gmail.com>2013-01-08 08:11:41 -0800
committerBryan McLellan <btm@opscode.com>2013-05-30 09:41:13 -0700
commit9ca147c954ff5e93c2c5d80263486bbfbbbc4666 (patch)
treefc4b577de65490ca4056b5ec9eb6fea79381d3f8 /spec/unit/exceptions_spec.rb
parent8813848a337e8d0bb93aca57edb022f3c2d1df88 (diff)
downloadchef-9ca147c954ff5e93c2c5d80263486bbfbbbc4666.tar.gz
Adding support for environments when running under chef-solo.
This commit refactors and rebases Kyle Goodwin's original work for CHEF-3356, as per Bryan McLellan's 12/17 comments.
Diffstat (limited to 'spec/unit/exceptions_spec.rb')
-rw-r--r--spec/unit/exceptions_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/unit/exceptions_spec.rb b/spec/unit/exceptions_spec.rb
index a979d2f6b9..fdf515de54 100644
--- a/spec/unit/exceptions_spec.rb
+++ b/spec/unit/exceptions_spec.rb
@@ -1,6 +1,7 @@
#
# Author:: Thomas Bishop (<bishop.thomas@gmail.com>)
# Author:: Christopher Walters (<cw@opscode.com>)
+# Author:: Kyle Goodwin (<kgoodwin@primerevenue.com>)
# Copyright:: Copyright (c) 2010 Thomas Bishop
# Copyright:: Copyright (c) 2010 Opscode, Inc.
# License:: Apache License, Version 2.0
@@ -62,7 +63,9 @@ describe Chef::Exceptions do
Chef::Exceptions::ResourceNotFound => RuntimeError,
Chef::Exceptions::InvalidResourceSpecification => ArgumentError,
Chef::Exceptions::SolrConnectionError => RuntimeError,
- Chef::Exceptions::InvalidDataBagPath => ArgumentError
+ Chef::Exceptions::InvalidDataBagPath => ArgumentError,
+ Chef::Exceptions::InvalidEnvironmentPath => ArgumentError,
+ Chef::Exceptions::EnvironmentNotFound => RuntimeError
}
exception_to_super_class.each do |exception, expected_super_class|