From 1c7b4629240c49e02c482da6de1a6a2cc574304e Mon Sep 17 00:00:00 2001 From: tyler-ball Date: Wed, 24 Sep 2014 09:18:47 -0700 Subject: Trying to eradicate all traces of the JSON gem from Chef --- spec/unit/exceptions_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec/unit/exceptions_spec.rb') diff --git a/spec/unit/exceptions_spec.rb b/spec/unit/exceptions_spec.rb index 3e7b1ba93f..c7bfc63e6b 100644 --- a/spec/unit/exceptions_spec.rb +++ b/spec/unit/exceptions_spec.rb @@ -74,5 +74,11 @@ describe Chef::Exceptions do it "should have an exception class of #{exception} which inherits from #{expected_super_class}" do lambda{ raise exception }.should raise_error(expected_super_class) end + + if exception.methods.include?(:to_json) + include_examples "to_json equalivent to Chef::JSONCompat.to_json" do + let(:subject) { exception } + end + end end end -- cgit v1.2.1