Commit fa44e84f authored by jplang's avatar jplang

Adds a class for testing helpers.

git-svn-id: https://svn.redmine.org/redmine/trunk@15683 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 71edc266
......@@ -277,6 +277,10 @@ module Redmine
end
end
class HelperTest < ActionView::TestCase
end
class ControllerTest < ActionController::TestCase
def process(method, path, parameters={}, session={}, flash={})
if parameters.key?(:params) || parameters.key?(:session)
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ActivitiesHelperTest < ActionView::TestCase
class ActivitiesHelperTest < Redmine::HelperTest
include ActivitiesHelper
include Redmine::I18n
......
......@@ -19,7 +19,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ApplicationHelperTest < ActionView::TestCase
class ApplicationHelperTest < Redmine::HelperTest
include Redmine::I18n
include ERB::Util
include Rails.application.routes.url_helpers
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class CustomFieldsHelperTest < ActionView::TestCase
class CustomFieldsHelperTest < Redmine::HelperTest
include ApplicationHelper
include CustomFieldsHelper
include Redmine::I18n
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class GroupsHelperTest < ActionView::TestCase
class GroupsHelperTest < Redmine::HelperTest
include Redmine::I18n
include ERB::Util
include GroupsHelper
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class IssuesHelperTest < ActionView::TestCase
class IssuesHelperTest < Redmine::HelperTest
include Redmine::I18n
include IssuesHelper
include CustomFieldsHelper
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class JournalsHelperTest < ActionView::TestCase
class JournalsHelperTest < Redmine::HelperTest
include JournalsHelper
fixtures :projects, :trackers, :issue_statuses, :issues,
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class MembersHelperTest < ActionView::TestCase
class MembersHelperTest < Redmine::HelperTest
include Redmine::I18n
include ERB::Util
include MembersHelper
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class MyHelperTest < ActionView::TestCase
class MyHelperTest < Redmine::HelperTest
include Redmine::I18n
include ERB::Util
include MyHelper
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class ProjectsHelperTest < ActionView::TestCase
class ProjectsHelperTest < Redmine::HelperTest
include ApplicationHelper
include ProjectsHelper
include Redmine::I18n
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class QueriesHelperTest < ActionView::TestCase
class QueriesHelperTest < Redmine::HelperTest
include QueriesHelper
include Redmine::I18n
......
......@@ -19,7 +19,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class RoutesHelperTest < ActionView::TestCase
class RoutesHelperTest < Redmine::HelperTest
fixtures :projects, :issues
include Rails.application.routes.url_helpers
......
......@@ -19,7 +19,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class SearchHelperTest < ActionView::TestCase
class SearchHelperTest < Redmine::HelperTest
include SearchHelper
include Redmine::I18n
include ERB::Util
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class SettingsHelperTest < ActionView::TestCase
class SettingsHelperTest < Redmine::HelperTest
include SettingsHelper
include Redmine::I18n
include ERB::Util
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class SortHelperTest < ActionView::TestCase
class SortHelperTest < Redmine::HelperTest
include SortHelper
include Redmine::I18n
include ERB::Util
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class TimelogHelperTest < ActionView::TestCase
class TimelogHelperTest < Redmine::HelperTest
include TimelogHelper
include Redmine::I18n
include ActionView::Helpers::TextHelper
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class VersionsHelperTest < ActionView::TestCase
class VersionsHelperTest < Redmine::HelperTest
include Rails.application.routes.url_helpers
fixtures :projects, :versions
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class WatchersHelperTest < ActionView::TestCase
class WatchersHelperTest < Redmine::HelperTest
include WatchersHelper
include Redmine::I18n
include Rails.application.routes.url_helpers
......
......@@ -17,7 +17,7 @@
require File.expand_path('../../../test_helper', __FILE__)
class WikiHelperTest < ActionView::TestCase
class WikiHelperTest < Redmine::HelperTest
include WikiHelper
include Rails.application.routes.url_helpers
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment