##// END OF EJS Templates
Added tests for Redmine::Plugin::Hook::Base
Added tests for Redmine::Plugin::Hook::Base

File last commit:

r1703:e7309d8c5730
r1703:e7309d8c5730
Show More
plugin_hook_test.rb
30 lines | 894 B | text/x-ruby | RubyLexer
/ test / unit / lib / redmine / plugin_hook_test.rb
require File.dirname(__FILE__) + '/../../../test_helper'
class Redmine::Plugin::Hook::ManagerTest < Test::Unit::TestCase
def test_sanity
assert true
end
end
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