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.
This commit is contained in:
Dan Tao 2014-01-23 17:42:14 -08:00
parent 4f0b1bdf6d
commit fafacef0a0
1 changed files with 5 additions and 0 deletions

View File

@ -131,6 +131,11 @@ class TestConfiguration < Test::Unit::TestCase
Jekyll.configuration({'config' => [@user_config]}) Jekyll.configuration({'config' => [@user_config]})
end end
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 end
context "loading config from external file" do context "loading config from external file" do
setup do setup do