Browse Source

fix test failure (#13405)

<pre>
  1) Failure:
test_scan_changesets_for_issue_ids(RepositoryTest) [/xxx/test/unit/repository_test.rb:214]:
<"Applied in changeset r2."> expected but was
<"Applied in changeset commit:691322a8eb01e11fd7.">.
</pre>

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11672 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/2.4.0
Toshi MARUYAMA 11 years ago
parent
commit
31590e307a
2 changed files with 5 additions and 5 deletions
  1. 2
    2
      test/fixtures/changesets.yml
  2. 3
    3
      test/unit/helpers/application_helper_test.rb

+ 2
- 2
test/fixtures/changesets.yml View File

@@ -3,8 +3,9 @@ changesets_001:
commit_date: 2007-04-11
committed_on: 2007-04-11 15:14:44 +02:00
revision: 1
scmid: 691322a8eb01e11fd7
id: 100
comments: My very first commit
comments: 'do not escaping #<>&'
repository_id: 10
committer: dlopper
user_id: 3
@@ -13,7 +14,6 @@ changesets_002:
committed_on: 2007-04-12 15:14:44 +02:00
revision: 2
id: 101
scmid: 691322a8eb01e11fd7
comments: 'This commit fixes #1, #2 and references #1 & #3'
repository_id: 10
committer: dlopper

+ 3
- 3
test/unit/helpers/application_helper_test.rb View File

@@ -265,12 +265,12 @@ RAW
:class => Issue.find(3).css_classes, :title => 'Error 281 when updating a recipe (New)')

revision_link = link_to('r1', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :rev => 1},
:class => 'changeset', :title => 'My very first commit')
:class => 'changeset', :title => 'do not escaping #<>&')
revision_link2 = link_to('r2', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :rev => 2},
:class => 'changeset', :title => 'This commit fixes #1, #2 and references #1 & #3')

changeset_link2 = link_to('691322a8eb01e11fd7', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :rev => 2},
:class => 'changeset', :title => 'This commit fixes #1, #2 and references #1 & #3')
changeset_link2 = link_to('691322a8eb01e11fd7', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :rev => 1},
:class => 'changeset', :title => 'do not escaping #<>&')

document_link = link_to('Test document', {:controller => 'documents', :action => 'show', :id => 1},
:class => 'document')

Loading…
Cancel
Save