From ffc42310b43d8e28c85bc8011ae820df7e3ab50c Mon Sep 17 00:00:00 2001 From: Matt Rogers Date: Mon, 25 Feb 2013 13:19:45 -0600 Subject: [PATCH] Add back a test that was mistakenly removed. --- test/test_site.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_site.rb b/test/test_site.rb index 9219e102..5c3c0c74 100644 --- a/test/test_site.rb +++ b/test/test_site.rb @@ -11,6 +11,11 @@ class TestSite < Test::Unit::TestCase site = Site.new(Jekyll::DEFAULTS.merge({'source' => source_dir})) assert_equal [File.join(source_dir, '_plugins')], site.plugins end + + should "have an array for plugins if passed as a string" do + site = Site.new(Jekyll::DEFAULTS.merge({'plugins' => '/tmp/plugins'})) + assert_equal ['/tmp/plugins'], site.plugins + end should "have an array for plugins if passed as an array" do site = Site.new(Jekyll::DEFAULTS.merge({'plugins' => ['/tmp/plugins', '/tmp/otherplugins']}))