Blob Blame History Raw
From 7ed37ffbf3fca11ca4d150636138669d58e19daa Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe@gmail.com>
Date: Mon, 26 Aug 2019 10:33:42 +0200
Subject: [PATCH 6/8] test/plugin_manager: disable tests requiring gemspec and
 Gemfile

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

diff --git a/test/test_plugin_manager.rb b/test/test_plugin_manager.rb
index a7b9359e2..a7f9f7187 100644
--- a/test/test_plugin_manager.rb
+++ b/test/test_plugin_manager.rb
@@ -17,50 +17,6 @@ class TestPluginManager < JekyllUnitTest
     FileUtils.mv "AlternateGemfile", "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 "BUNDLE_GEMFILE set to `AlternateGemfile`" do
-    should "require from bundler" do
-      with_env("BUNDLE_GEMFILE", "AlternateGemfile") do
-        with_bundle_gemfile 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
-  end
-
-  context "JEKYLL_NO_BUNDLER_REQUIRE set to `true`" do
-    should "not require from bundler" do
-      with_env("JEKYLL_NO_BUNDLER_REQUIRE", "true") do
-        refute Jekyll::PluginManager.require_from_bundler,
-               "Gemfile plugins were required but shouldn't have been"
-        assert ENV["JEKYLL_NO_BUNDLER_REQUIRE"]
-      end
-    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.39.1