summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/safe_yaml-1.0.5/spec/yaml_spec.rb
blob: 2c2bd181e3de91b95100e824cc5776fcb4a88b2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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