summaryrefslogtreecommitdiff
path: root/lib/bundler/plugin.rb
diff options
context:
space:
mode:
authorAsutosh Palai <asupalai@gmail.com>2016-07-21 02:32:25 +0530
committerAsutosh Palai <asupalai@gmail.com>2016-08-16 09:46:18 +0530
commit7ec9e457bd939f4565d35c5b064401933763d020 (patch)
tree45e0b6e9f731b7677937fb770c8d8b9d460d79d7 /lib/bundler/plugin.rb
parent5977342e7ac4600051e7a38977a4e7c7cb420cc1 (diff)
downloadbundler-7ec9e457bd939f4565d35c5b064401933763d020.tar.gz
Added specs for hooks
Diffstat (limited to 'lib/bundler/plugin.rb')
-rw-r--r--lib/bundler/plugin.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/plugin.rb b/lib/bundler/plugin.rb
index e55f0fcf1b..54a9ac33a4 100644
--- a/lib/bundler/plugin.rb
+++ b/lib/bundler/plugin.rb
@@ -159,12 +159,13 @@ module Bundler
Index.new.installed?(plugin)
end
- # Used by specs
def reset!
instance_variables.each {|i| remove_instance_variable(i) }
@sources = {}
@commands = {}
+ @hooks = {}
+ @loaded = []
end
# Post installation processing and registering with index