blob: 2c2bd181e3de91b95100e824cc5776fcb4a88b2a [file] [log] [blame]
# 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