summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authortylercloke <tyler@opscode.com>2013-07-08 15:37:52 -0700
committertylercloke <tyler@opscode.com>2013-07-08 15:37:52 -0700
commit5eeefe93cb9bcf8b26a0c40bf8307251073ab860 (patch)
tree4b8ac1942a92335d8f0b5dcfade936db79fb64e1 /spec
parentaf181c74a1b39c123400b1027285e883e71060c3 (diff)
downloadchef-5eeefe93cb9bcf8b26a0c40bf8307251073ab860.tar.gz
Change error description sections elements to be hashes.
It is much easier for erlang to validate the json that chef-client sends up if exception_data.description.sections is of structure: [{"str1" => "value1"}, ... ] As opposed to current structure of: [["str1", "value1"], ... ] This change was achieved by updating error_description.rb. I also updated relevant test.
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/resource_reporter_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/resource_reporter_spec.rb b/spec/unit/resource_reporter_spec.rb
index c4a1de9f13..715b724be8 100644
--- a/spec/unit/resource_reporter_spec.rb
+++ b/spec/unit/resource_reporter_spec.rb
@@ -408,7 +408,7 @@ describe Chef::ResourceReporter do
it "includes the error inspector output in the event data" do
@report["data"]["exception"].should have_key("description")
- @report["data"]["exception"]["description"].should include({"title"=>"Error expanding the run_list:", "sections"=>[["Unexpected Error:", "RSpec::Mocks::Mock: Object not found"]]})
+ @report["data"]["exception"]["description"].should include({"title"=>"Error expanding the run_list:", "sections"=>[{"Unexpected Error:" => "RSpec::Mocks::Mock: Object not found"}]})
end
end