Sfoglia il codice sorgente

Adds a class for testing helpers.

git-svn-id: http://svn.redmine.org/redmine/trunk@15683 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.4.0
Jean-Philippe Lang 8 anni fa
parent
commit
c4b4b8a71e

+ 4
- 0
test/test_helper.rb Vedi 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)

+ 1
- 1
test/unit/helpers/activities_helper_test.rb Vedi 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


+ 1
- 1
test/unit/helpers/application_helper_test.rb Vedi 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

+ 1
- 1
test/unit/helpers/custom_fields_helper_test.rb Vedi 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

+ 1
- 1
test/unit/helpers/groups_helper_test.rb Vedi 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

+ 1
- 1
test/unit/helpers/issues_helper_test.rb Vedi 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

+ 1
- 1
test/unit/helpers/journals_helper_test.rb Vedi 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,

+ 1
- 1
test/unit/helpers/members_helper_test.rb Vedi 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

+ 1
- 1
test/unit/helpers/my_helper_test.rb Vedi 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

+ 1
- 1
test/unit/helpers/projects_helper_test.rb Vedi 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

+ 1
- 1
test/unit/helpers/queries_helper_test.rb Vedi 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


+ 1
- 1
test/unit/helpers/routes_helper_test.rb Vedi 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

+ 1
- 1
test/unit/helpers/search_helper_test.rb Vedi 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

+ 1
- 1
test/unit/helpers/settings_helper_test.rb Vedi 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

+ 1
- 1
test/unit/helpers/sort_helper_test.rb Vedi 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

+ 1
- 1
test/unit/helpers/timelog_helper_test.rb Vedi 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

+ 1
- 1
test/unit/helpers/version_helper_test.rb Vedi 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

+ 1
- 1
test/unit/helpers/watchers_helper_test.rb Vedi 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

+ 1
- 1
test/unit/helpers/wiki_helper_test.rb Vedi 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


Loading…
Annulla
Salva