summaryrefslogtreecommitdiff
path: root/spec/bundler/plugin_spec.rb
diff options
context:
space:
mode:
authorjules2689 <julian@jnadeau.ca>2018-05-31 20:35:55 +0900
committerjules2689 <julian@jnadeau.ca>2018-05-31 20:35:55 +0900
commit39fb5fd9b3f9034780270ffbdb150200c8ce923a (patch)
tree17327339307c490423808350cd204866db01c816 /spec/bundler/plugin_spec.rb
parentfdddb742067a3d8aee0b782d820305494d7b06c9 (diff)
downloadbundler-39fb5fd9b3f9034780270ffbdb150200c8ce923a.tar.gz
Fix a spec comparison, reset events in tests to avoid test order issues
Diffstat (limited to 'spec/bundler/plugin_spec.rb')
-rw-r--r--spec/bundler/plugin_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/bundler/plugin_spec.rb b/spec/bundler/plugin_spec.rb
index 54814b0728..eaa0b80905 100644
--- a/spec/bundler/plugin_spec.rb
+++ b/spec/bundler/plugin_spec.rb
@@ -268,6 +268,7 @@ RSpec.describe Bundler::Plugin do
s.write "plugins.rb", code
end
+ Bundler::Plugin::Events.send(:reset)
Bundler::Plugin::Events.send(:define, :EVENT_1, "event-1")
Bundler::Plugin::Events.send(:define, :EVENT_2, "event-2")