]> source.dussan.org Git - redmine.git/commitdiff
Adds a class for testing helpers.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 16 Jul 2016 11:36:57 +0000 (11:36 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 16 Jul 2016 11:36:57 +0000 (11:36 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@15683 e93f8b46-1217-0410-a6f0-8f06a7374b81

19 files changed:
test/test_helper.rb
test/unit/helpers/activities_helper_test.rb
test/unit/helpers/application_helper_test.rb
test/unit/helpers/custom_fields_helper_test.rb
test/unit/helpers/groups_helper_test.rb
test/unit/helpers/issues_helper_test.rb
test/unit/helpers/journals_helper_test.rb
test/unit/helpers/members_helper_test.rb
test/unit/helpers/my_helper_test.rb
test/unit/helpers/projects_helper_test.rb
test/unit/helpers/queries_helper_test.rb
test/unit/helpers/routes_helper_test.rb
test/unit/helpers/search_helper_test.rb
test/unit/helpers/settings_helper_test.rb
test/unit/helpers/sort_helper_test.rb
test/unit/helpers/timelog_helper_test.rb
test/unit/helpers/version_helper_test.rb
test/unit/helpers/watchers_helper_test.rb
test/unit/helpers/wiki_helper_test.rb

index 5ad64517bad67d2cfdf0e93290d646b59f62c0a0..2572495dfa87d38ff4b31ff7a597f4df70f9935b 100644 (file)
@@ -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)
index 57c93fa4465c954292afb47535bea87e6ae2dc6f..2a31d14be9902231dc8750bc8f5562ec33ab7c9e 100644 (file)
@@ -17,7 +17,7 @@
 
 require File.expand_path('../../../test_helper', __FILE__)
 
-class ActivitiesHelperTest < ActionView::TestCase
+class ActivitiesHelperTest < Redmine::HelperTest
   include ActivitiesHelper
   include Redmine::I18n
 
index 48260ccf7056f7b98e2c91fbcb3c13123e4bd2c7..7940ca1323a55742e76bdcc164b4b7428638f0a7 100644 (file)
@@ -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
index 5ee500f3eb6c6bcd2dc40ee2801b4f3e5cf62fac..7e352a9aa7aa654e18796663659d5898d12d66b5 100644 (file)
@@ -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
index dc30470d83bf8f9d1441735984828f04a61af16f..b927a1d72610443c0b6929888049c83a357ff130 100644 (file)
@@ -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
index 63f8be0a68e8f9ca6258dd4cb46612facc37caa4..0a31ddb3b57273116933e8d7f423b93d5b52c1fd 100644 (file)
@@ -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
index c33a1081af466283ca9dcfca233f0d84b8d6963a..057dc7fac516e9ab9c05c492aaefcaf079cadebf 100644 (file)
@@ -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,
index c9d7b09a4b2a43bddb7361a7deb83ca26819fa81..0f2cf893960077447e08516de18c066fb845b4f0 100644 (file)
@@ -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
index 2b7fa32cc9a1de0cc86973669c217157a53c3d24..dc03c5662a18619e1ad536ef1b942b455f439dab 100644 (file)
@@ -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
index 8a06a24f0cda2776ece77dfeea7eed21c5b6cb3a..c72efff80aa602287089b90ddaebba38abc76ef0 100644 (file)
@@ -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
index 48559380677ceaaf65fff7d6472a2b511639696f..c57315242808a745bc0a25ac9f1dfba67ab9f920 100644 (file)
@@ -17,7 +17,7 @@
 
 require File.expand_path('../../../test_helper', __FILE__)
 
-class QueriesHelperTest < ActionView::TestCase
+class QueriesHelperTest < Redmine::HelperTest
   include QueriesHelper
   include Redmine::I18n
 
index ec977c15657ba83f7b7ba7a466bfcab220ca4015..1e58d7f8f941f9cd9fb31bdfe5756d590852c691 100644 (file)
@@ -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
index 07b58ac0a9bf0fe013e2466ad885b18500bb2479..6e1b1ac1710abdfd8f93f8db28cca5581707f085 100644 (file)
@@ -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
index be37fb7023680809a687cace1036c5a2ee6cb552..42dc7a5793fda4377bc70e4272cb90c525f063f4 100644 (file)
@@ -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
index c9e561dd60a0fbd38e2d71706bf124bbc0d6ec32..605fd99d774a81bc52fa112bdd92116efdd4581a 100644 (file)
@@ -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
index 044981a3a8eb52083c0d8d9c0ce6229ba6605d9b..cec1e2cb07159dc6689d45f2b829c992fa35be7c 100644 (file)
@@ -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
index 751a420b5a1f666a33f6e3b5524b3d6e24c4257c..c6206b1933754ceb747001764068ea270c69792d 100644 (file)
@@ -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
index 1e567ab30098b9edaf99edff74603a52c88c1872..9e46f64b032afa9b1dd519620c4961469f9d6941 100644 (file)
@@ -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
index 74dda891f850e1b1439e01729fc3fe82703c6b03..8624848fab72fc01f04418c3ac3b9c1f6c85847d 100644 (file)
@@ -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