X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=test%2Ftest_plugins_priority.rb;h=ab66a62d60d9f36e6e2c5f86ee7d701396732123;hb=0368e8c09385a6c49e0d59cd6162675057e5b339;hp=b5d3450f373c8866b7e1cbe9badc05e9b98268c8;hpb=173c64800b2bf9b7a36c83eeadd74d974cb7ec15;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/test/test_plugins_priority.rb b/test/test_plugins_priority.rb index b5d3450f..ab66a62d 100644 --- a/test/test_plugins_priority.rb +++ b/test/test_plugins_priority.rb @@ -46,7 +46,7 @@ class PluginsPriorityTest < Test::Unit::TestCase @mock3 = MockModule.new(3) @mock4 = MockModule.new(4) @mock5 = MockModule.new(5) - + # This whole thing is a PITA because PluginManagerClass is a singleton unless @@manager @@manager = PluginManagerClass.instance @@ -63,7 +63,7 @@ class PluginsPriorityTest < Test::Unit::TestCase @@manager.instance_eval { @sort_call_count = nil } @@manager.mark_priorities_dirty - # We add the modules to the lists in the wrong order + # We add the modules to the lists in the wrong order # on purpose to make sure the sort is working @@manager.plugins.clear @@manager.core_modules.clear @@ -81,7 +81,7 @@ class PluginsPriorityTest < Test::Unit::TestCase dlist << @mock2 dlist << @mock5 end - + def test_default_priority plugin = TestRealBotModule.new assert_equal 1, plugin.priority