@@ -781,7 +781,7 module ApplicationHelper | |||||
781 | link = link_to("##{oid}#{comment_suffix}", |
|
781 | link = link_to("##{oid}#{comment_suffix}", | |
782 | issue_url(issue, :only_path => only_path, :anchor => anchor), |
|
782 | issue_url(issue, :only_path => only_path, :anchor => anchor), | |
783 | :class => issue.css_classes, |
|
783 | :class => issue.css_classes, | |
784 | :title => "#{issue.subject.truncate(100)} (#{issue.status.name})") |
|
784 | :title => "#{issue.tracker.name}: #{issue.subject.truncate(100)} (#{issue.status.name})") | |
785 | end |
|
785 | end | |
786 | when 'document' |
|
786 | when 'document' | |
787 | if document = Document.visible.find_by_id(oid) |
|
787 | if document = Document.visible.find_by_id(oid) |
@@ -276,11 +276,11 RAW | |||||
276 |
|
276 | |||
277 | def test_redmine_links |
|
277 | def test_redmine_links | |
278 | issue_link = link_to('#3', {:controller => 'issues', :action => 'show', :id => 3}, |
|
278 | issue_link = link_to('#3', {:controller => 'issues', :action => 'show', :id => 3}, | |
279 | :class => Issue.find(3).css_classes, :title => 'Error 281 when updating a recipe (New)') |
|
279 | :class => Issue.find(3).css_classes, :title => 'Bug: Error 281 when updating a recipe (New)') | |
280 | note_link = link_to('#3-14', {:controller => 'issues', :action => 'show', :id => 3, :anchor => 'note-14'}, |
|
280 | note_link = link_to('#3-14', {:controller => 'issues', :action => 'show', :id => 3, :anchor => 'note-14'}, | |
281 | :class => Issue.find(3).css_classes, :title => 'Error 281 when updating a recipe (New)') |
|
281 | :class => Issue.find(3).css_classes, :title => 'Bug: Error 281 when updating a recipe (New)') | |
282 | note_link2 = link_to('#3#note-14', {:controller => 'issues', :action => 'show', :id => 3, :anchor => 'note-14'}, |
|
282 | note_link2 = link_to('#3#note-14', {:controller => 'issues', :action => 'show', :id => 3, :anchor => 'note-14'}, | |
283 | :class => Issue.find(3).css_classes, :title => 'Error 281 when updating a recipe (New)') |
|
283 | :class => Issue.find(3).css_classes, :title => 'Bug: Error 281 when updating a recipe (New)') | |
284 |
|
284 | |||
285 | revision_link = link_to('r1', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :rev => 1}, |
|
285 | revision_link = link_to('r1', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :rev => 1}, | |
286 | :class => 'changeset', :title => 'My very first commit do not escaping #<>&') |
|
286 | :class => 'changeset', :title => 'My very first commit do not escaping #<>&') | |
@@ -964,7 +964,7 RAW | |||||
964 | result2 = link_to('#1', |
|
964 | result2 = link_to('#1', | |
965 | "/issues/1", |
|
965 | "/issues/1", | |
966 | :class => Issue.find(1).css_classes, |
|
966 | :class => Issue.find(1).css_classes, | |
967 | :title => "Cannot print recipes (New)") |
|
967 | :title => "Bug: Cannot print recipes (New)") | |
968 |
|
968 | |||
969 | expected = <<-EXPECTED |
|
969 | expected = <<-EXPECTED | |
970 | <p>#{result1}</p> |
|
970 | <p>#{result1}</p> |
@@ -56,7 +56,7 class MailerTest < ActiveSupport::TestCase | |||||
56 | # link to a referenced ticket |
|
56 | # link to a referenced ticket | |
57 | assert_select 'a[href=?][title=?]', |
|
57 | assert_select 'a[href=?][title=?]', | |
58 | 'https://mydomain.foo/issues/1', |
|
58 | 'https://mydomain.foo/issues/1', | |
59 | "Cannot print recipes (New)", |
|
59 | "Bug: Cannot print recipes (New)", | |
60 | :text => '#1' |
|
60 | :text => '#1' | |
61 | # link to a changeset |
|
61 | # link to a changeset | |
62 | assert_select 'a[href=?][title=?]', |
|
62 | assert_select 'a[href=?][title=?]', | |
@@ -97,7 +97,7 class MailerTest < ActiveSupport::TestCase | |||||
97 | # link to a referenced ticket |
|
97 | # link to a referenced ticket | |
98 | assert_select 'a[href=?][title=?]', |
|
98 | assert_select 'a[href=?][title=?]', | |
99 | 'http://mydomain.foo/rdm/issues/1', |
|
99 | 'http://mydomain.foo/rdm/issues/1', | |
100 | "Cannot print recipes (New)", |
|
100 | "Bug: Cannot print recipes (New)", | |
101 | :text => '#1' |
|
101 | :text => '#1' | |
102 | # link to a changeset |
|
102 | # link to a changeset | |
103 | assert_select 'a[href=?][title=?]', |
|
103 | assert_select 'a[href=?][title=?]', | |
@@ -167,7 +167,7 class MailerTest < ActiveSupport::TestCase | |||||
167 | # link to a referenced ticket |
|
167 | # link to a referenced ticket | |
168 | assert_select 'a[href=?][title=?]', |
|
168 | assert_select 'a[href=?][title=?]', | |
169 | 'http://mydomain.foo/rdm/issues/1', |
|
169 | 'http://mydomain.foo/rdm/issues/1', | |
170 | "Cannot print recipes (New)", |
|
170 | "Bug: Cannot print recipes (New)", | |
171 | :text => '#1' |
|
171 | :text => '#1' | |
172 | # link to a changeset |
|
172 | # link to a changeset | |
173 | assert_select 'a[href=?][title=?]', |
|
173 | assert_select 'a[href=?][title=?]', |
General Comments 0
You need to be logged in to leave comments.
Login now