From 39fb5fd9b3f9034780270ffbdb150200c8ce923a Mon Sep 17 00:00:00 2001 From: jules2689 Date: Thu, 31 May 2018 20:35:55 +0900 Subject: Fix a spec comparison, reset events in tests to avoid test order issues --- spec/bundler/plugin_spec.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/bundler/plugin_spec.rb') 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") -- cgit v1.2.1