diff options
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e0788f3d9c..475daff39e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -183,12 +183,5 @@ module WEBrick end end -# We are no longer using the 'json' gem - deny all access to it! -orig_require = Kernel.send(:instance_method, :require) -Kernel.send(:remove_method, :require) -Kernel.send(:define_method, :require) { |path| - raise LoadError, 'JSON gem is no longer allowed - use Chef::JSONCompat.to_json' if path == 'json' - orig_require.bind(Kernel).call(path) - } # Enough stuff needs json serialization that I'm just adding it here for equality asserts require 'chef/json_compat' |