summaryrefslogtreecommitdiffstats
path: root/test/unit/lib/redmine/plugin_hook_test.rb
blob: 75634d85cfb80dd05110e113fc57e7c8ee0739d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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