summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2012-08-22 16:34:38 -0700
committerdanielsdeleo <dan@opscode.com>2012-08-22 16:34:38 -0700
commita77c5ae6dd24af6c06035fb3df0284b8a4a9c265 (patch)
tree25b0186396ce98befe9980110e0e333ee2328af6
parentca3b636dfe30f31f2596f06e793fd32044aadce7 (diff)
downloadchef-a77c5ae6dd24af6c06035fb3df0284b8a4a9c265.tar.gz
[CHEF-3382] fix for 3382 broke tests calling filtered_bt
-rw-r--r--chef/spec/unit/resource_reporter_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/chef/spec/unit/resource_reporter_spec.rb b/chef/spec/unit/resource_reporter_spec.rb
index 5af33eccae..a3492b1151 100644
--- a/chef/spec/unit/resource_reporter_spec.rb
+++ b/chef/spec/unit/resource_reporter_spec.rb
@@ -85,6 +85,7 @@ describe Chef::ResourceReporter do
context "when a resource fails before loading current state" do
before do
@exception = Exception.new
+ @exception.set_backtrace(caller)
@resource_reporter.resource_action_start(@new_resource, :create)
@resource_reporter.resource_failed(@new_resource, :create, @exception)
@resource_reporter.resource_completed(@new_resource)
@@ -148,6 +149,7 @@ describe Chef::ResourceReporter do
before do
@next_new_resource = Chef::Resource::Service.new("apache2")
@exception = Exception.new
+ @exception.set_backtrace(caller)
@resource_reporter.resource_failed(@next_new_resource, :create, @exception)
@resource_reporter.resource_completed(@next_new_resource)
end
@@ -203,6 +205,7 @@ describe Chef::ResourceReporter do
context "and the resource failed to converge" do
before do
@exception = Exception.new
+ @exception.set_backtrace(caller)
@resource_reporter.resource_failed(@new_resource, :create, @exception)
@resource_reporter.resource_completed(@new_resource)
end