Browse Source

Added tests for Redmine::Plugin::Hook::Base

plugin-hooks
Eric Davis 16 years ago
parent
commit
e7309d8c57
1 changed files with 17 additions and 0 deletions
  1. 17
    0
      test/unit/lib/redmine/plugin_hook_test.rb

+ 17
- 0
test/unit/lib/redmine/plugin_hook_test.rb View 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

Loading…
Cancel
Save