Skip to content

Commit

Permalink
Do not require spec helpers in production code
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tagliala committed Apr 22, 2024
1 parent d6c2883 commit 724a27e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion lib/sharepoint.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
require 'sharepoint/errors'
require 'sharepoint/client'
require 'sharepoint/spec_helpers'
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

$LOAD_PATH << ("#{SPEC_BASE.parent}lib")
require 'sharepoint'
require 'sharepoint/spec_helpers'

def fixture(name)
"#{SPEC_BASE}fixtures#{name}"
Expand Down

0 comments on commit 724a27e

Please sign in to comment.