require File.expand_path('../../../test_helper', __FILE__)
class IssuesHelperTest < ActionView::TestCase
- include ApplicationHelper
include Redmine::I18n
include IssuesHelper
include CustomFieldsHelper
require 'redmine/field_format'
class Redmine::LinkFieldFormatTest < ActionView::TestCase
- include ApplicationHelper
-
def test_link_field_should_substitute_value
field = IssueCustomField.new(:field_format => 'link', :url_pattern => 'http://foo/%value%')
custom_value = CustomValue.new(:custom_field => field, :customized => Issue.new, :value => "bar")
require 'redmine/field_format'
class Redmine::UserFieldFormatTest < ActionView::TestCase
- include ApplicationHelper
-
fixtures :projects, :roles, :users, :members, :member_roles
def test_user_role_should_reject_blank_values
require 'redmine/field_format'
class Redmine::VersionFieldFormatTest < ActionView::TestCase
- include ApplicationHelper
-
fixtures :projects, :versions, :trackers
def test_version_status_should_reject_blank_values
:versions,
:groups_users
- include ApplicationHelper
include ProjectsHelper
include IssuesHelper
include ERB::Util
require File.expand_path('../../../../../test_helper', __FILE__)
class Redmine::WikiFormatting::MarkdownFormatterTest < ActionView::TestCase
- include ApplicationHelper
-
if Object.const_defined?(:Redcarpet)
def setup