File: yaml_spec.rb

package info (click to toggle)
ruby-safe-yaml 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 344 kB
  • ctags: 163
  • sloc: ruby: 1,997; sh: 30; makefile: 7
file content (15 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (2)
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
      YAML.method(:load).should == ORIGINAL_YAML_LOAD
    end

    it "YAML.load_file doesn't get monkey patched" do
      YAML.method(:load_file).should == ORIGINAL_YAML_LOAD_FILE
    end
  end
end