Project

General

Profile

Feature #15701 » rm15701-fix_substitute_typos_in_link_format_tests-trunk_r12406.diff

Mischa The Evil, 2013-12-15 01:27

View differences:

test/unit/lib/redmine/field_format/link_format_test.rb (working copy)
29 29
    assert_equal '<a href="http://foo/bar">bar</a>', field.format.formatted_custom_value(self, custom_value, true)
30 30
  end
31 31

  
32
  def test_link_field_should_substitue_object_id_in_url
32
  def test_link_field_should_substitute_object_id_in_url
33 33
    object = Issue.new
34 34
    object.stubs(:id).returns(10)
35 35

  
......
40 40
    assert_equal '<a href="http://foo/10">bar</a>', field.format.formatted_custom_value(self, custom_value, true)
41 41
  end
42 42

  
43
  def test_link_field_should_substitue_project_id_in_url
43
  def test_link_field_should_substitute_project_id_in_url
44 44
    project = Project.new
45 45
    project.stubs(:id).returns(52)
46 46
    object = Issue.new
......
53 53
    assert_equal '<a href="http://foo/52">bar</a>', field.format.formatted_custom_value(self, custom_value, true)
54 54
  end
55 55

  
56
  def test_link_field_should_substitue_regexp_groups
56
  def test_link_field_should_substitute_regexp_groups
57 57
    field = IssueCustomField.new(:field_format => 'link', :regexp => /^(.+)-(.+)$/, :url_pattern => 'http://foo/%m2%/%m1%')
58 58
    custom_value = CustomValue.new(:custom_field => field, :customized => Issue.new, :value => "56-142")
59 59

  
(1-1/2)