From 724a27ec1d8ec1473a77c3b1c1054a42c1649757 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Mon, 22 Apr 2024 09:26:47 +0200 Subject: [PATCH] Do not require spec helpers in production code The intention of the current implementation, according to #2, is to make spec helpers available to gem users. In this case, helpers should stay in lib, but they should not be required by production code and rather loaded in spec_helper (where appropriate, since the host application can use minitest) Close #27 --- lib/sharepoint.rb | 1 - spec/spec_helper.rb | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sharepoint.rb b/lib/sharepoint.rb index 6c1a50f..94062c3 100644 --- a/lib/sharepoint.rb +++ b/lib/sharepoint.rb @@ -1,3 +1,2 @@ require 'sharepoint/errors' require 'sharepoint/client' -require 'sharepoint/spec_helpers' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 44f6ef4..46749f3 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -21,6 +21,7 @@ $LOAD_PATH << ("#{SPEC_BASE.parent}lib") require 'sharepoint' +require 'sharepoint/spec_helpers' def fixture(name) "#{SPEC_BASE}fixtures#{name}"