]> source.dussan.org Git - redmine.git/commitdiff
Added tests for Redmine::Plugin::Hook::Base
authorEric Davis <edavis@littlestreamsoftware.com>
Mon, 28 Jul 2008 23:40:18 +0000 (16:40 -0700)
committerEric Davis <edavis@littlestreamsoftware.com>
Mon, 28 Jul 2008 23:40:18 +0000 (16:40 -0700)
test/unit/lib/redmine/plugin_hook_test.rb

index d07e3dc87cd1eed0f36c1e4959e694361c995fd9..75634d85cfb80dd05110e113fc57e7c8ee0739d3 100644 (file)
@@ -10,4 +10,21 @@ class Redmine::Plugin::Hook::BaseTest < Test::Unit::TestCase
   def test_sanity
     assert true
   end
+  
+  def test_help_should_be_a_singleton
+    assert Redmine::Plugin::Hook::Base::Helper.include?(Singleton)
+  end
+  
+  def test_helper_should_include_actionview_helpers
+    [ActionView::Helpers::TagHelper,
+     ActionView::Helpers::FormHelper,
+     ActionView::Helpers::FormTagHelper,
+     ActionView::Helpers::FormOptionsHelper,
+     ActionView::Helpers::JavaScriptHelper, 
+     ActionView::Helpers::PrototypeHelper,
+     ActionView::Helpers::NumberHelper,
+     ActionView::Helpers::UrlHelper].each do |helper|
+      assert Redmine::Plugin::Hook::Base::Helper.include?(helper), "#{helper} wasn't included."
+    end
+  end
 end