From 41f8ced6b19c5080b381b5be158217afdf78cc83 Mon Sep 17 00:00:00 2001 From: Charles Greene Date: Thu, 19 Apr 2018 12:15:19 -0300 Subject: [PATCH] Fix random test failure --- lib/roku_builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roku_builder.rb b/lib/roku_builder.rb index 39ecd7a..886d2a9 100644 --- a/lib/roku_builder.rb +++ b/lib/roku_builder.rb @@ -37,7 +37,6 @@ module RokuBuilder # @param options [Hash] The options hash def self.run(options: nil) @@options = nil - @@dev = false setup_plugins setup_options(options: options) return unless @@options @@ -75,6 +74,7 @@ def self.plugins end def self.register_plugin(plugin) + @@dev ||= false @@plugins ||= [] @@plugins.delete(plugin) if @@dev @@plugins << plugin