From fafacef0a070ec4831f3f537f0069dfcbd798ba2 Mon Sep 17 00:00:00 2001 From: Dan Tao Date: Thu, 23 Jan 2014 17:42:14 -0800 Subject: [PATCH] added a test that YAML.load doesn't get clobbered I THINK this is a good idea? I considered multiple approaches to testing this; what I like about this dumb way (just try to deserialize a symbol) is that it's nice and simple. --- test/test_configuration.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_configuration.rb b/test/test_configuration.rb index d8fec5a5..a96141fa 100644 --- a/test/test_configuration.rb +++ b/test/test_configuration.rb @@ -131,6 +131,11 @@ class TestConfiguration < Test::Unit::TestCase Jekyll.configuration({'config' => [@user_config]}) end end + + should "not clobber YAML.load to the dismay of other libraries" do + assert_equal :foo, YAML.load(':foo') + # as opposed to: assert_equal ':foo', SafeYAML.load(':foo') + end end context "loading config from external file" do setup do