diff options
author | Raine Virta <rane@kapsi.fi> | 2009-02-19 16:26:34 +0200 |
---|---|---|
committer | Raine Virta <rane@kapsi.fi> | 2009-02-19 16:26:34 +0200 |
commit | 783ffa4235330029d661752b1023db635b26f2b3 (patch) | |
tree | e60c7a89e7053120b33810230401f5490a3cb697 /test | |
parent | ff452ad1bf111025f0661274ac7fb8b2f769a293 (diff) |
remove whitespace
Diffstat (limited to 'test')
-rw-r--r-- | test/test_plugins_priority.rb | 6 | ||||
-rw-r--r-- | test/test_plugins_threshold.rb | 8 |
2 files changed, 7 insertions, 7 deletions
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 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) |