Blob Blame History Raw
From c3447c4ea8407ef0fddc02a85cdce371ac5cfc02 Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe@gmail.com>
Date: Wed, 19 Sep 2018 12:24:23 +0200
Subject: [PATCH 9/9] test/plugin_manager: disable tests requiring upstream
 gemspec and Gemfile

---
 test/test_plugin_manager.rb | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/test/test_plugin_manager.rb b/test/test_plugin_manager.rb
index 213bcef6..326c887e 100644
--- a/test/test_plugin_manager.rb
+++ b/test/test_plugin_manager.rb
@@ -10,16 +10,6 @@ class TestPluginManager < JekyllUnitTest
     FileUtils.mv "Gemfile.old", "Gemfile"
   end
 
-  context "JEKYLL_NO_BUNDLER_REQUIRE set to `nil`" do
-    should "require from bundler" do
-      with_env("JEKYLL_NO_BUNDLER_REQUIRE", nil) do
-        assert Jekyll::PluginManager.require_from_bundler,
-               "require_from_bundler should return true."
-        assert ENV["JEKYLL_NO_BUNDLER_REQUIRE"], "Gemfile plugins were not required."
-      end
-    end
-  end
-
   context "JEKYLL_NO_BUNDLER_REQUIRE set to `true`" do
     should "not require from bundler" do
       with_env("JEKYLL_NO_BUNDLER_REQUIRE", "true") do
@@ -30,18 +20,6 @@ class TestPluginManager < JekyllUnitTest
     end
   end
 
-  context "JEKYLL_NO_BUNDLER_REQUIRE set to `nil` and no Gemfile present" do
-    should "not require from bundler" do
-      with_env("JEKYLL_NO_BUNDLER_REQUIRE", nil) do
-        with_no_gemfile do
-          refute Jekyll::PluginManager.require_from_bundler,
-                       "Gemfile plugins were required but shouldn't have been"
-          assert_nil ENV["JEKYLL_NO_BUNDLER_REQUIRE"]
-        end
-      end
-    end
-  end
-
   context "require gems" do
     should "invoke `require_with_graceful_fail`" do
       gems = %w(jemojii foobar)
-- 
2.19.1