rf-web/vendor/bundle/gems/safe_yaml-1.0.5/spec/yaml_spec.rb
2019-10-21 10:18:17 +02:00

16 lines
425 B
Ruby

# See https://github.com/dtao/safe_yaml/issues/47
require "spec_helper"
describe YAML do
context "when you've only required safe_yaml/load", :libraries => true do
it "YAML.load doesn't get monkey patched" do
expect(YAML.method(:load)).to eq(ORIGINAL_YAML_LOAD)
end
it "YAML.load_file doesn't get monkey patched" do
expect(YAML.method(:load_file)).to eq(ORIGINAL_YAML_LOAD_FILE)
end
end
end