Skip to content

Commit

Permalink
Ensure stand-alone test works
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Jan 7, 2024
1 parent c61452b commit 42d4474
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/whimsy/asf/ldap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
require 'securerandom'
require 'set'

if __FILE__ == $0
$LOAD_PATH.unshift '/srv/whimsy/lib'
require 'whimsy/asf/config'
end

module ASF
@@weakrefs = Set.new

Expand Down Expand Up @@ -1526,8 +1531,6 @@ class RoleGroup < Service
end

if __FILE__ == $0
$LOAD_PATH.unshift '/srv/whimsy/lib'
require 'whimsy/asf/config'
mem = ASF.members()
puts mem.length
puts mem.first.inspect
Expand Down

0 comments on commit 42d4474

Please sign in to comment.