X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=test%2Ftest_plugins_threshold.rb;h=8e92a095e9cc319bb2579746c77aa3300b33c275;hb=41276911b95c934dd5f33ccef53b03bc9dd40975;hp=f8c64a4ace8409c68e73145bf2a51dfc8bdd707e;hpb=e36f3f43138a0201ef0ae63db6e799564725055c;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/test/test_plugins_threshold.rb b/test/test_plugins_threshold.rb index f8c64a4a..8e92a095 100644 --- a/test/test_plugins_threshold.rb +++ b/test/test_plugins_threshold.rb @@ -55,7 +55,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 @@ -73,7 +73,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 @@ -91,7 +91,7 @@ class PluginsPriorityTest < Test::Unit::TestCase dlist << @mock2 dlist << @mock5 end - + def test_above @@manager.delegate_event('test', :above => 3) @@ -101,7 +101,7 @@ class PluginsPriorityTest < Test::Unit::TestCase assert_equal 1, @mock4.test_called_at.size assert_equal 1, @mock5.test_called_at.size end - + def test_below @@manager.delegate_event('test', :below => 3)