# Returns a string of css classes that apply to the issue
def css_classes
- s = "issue status-#{status_id} priority-#{priority.position}"
+ s = "issue status-#{status_id} priority-#{priority_id}"
s << ' closed' if closed?
s << ' overdue' if overdue?
s << ' child' if child?
}
# Enumerations
- DocumentCategory.create!(:name => l(:default_doc_category_user), :position => 1)
- DocumentCategory.create!(:name => l(:default_doc_category_tech), :position => 2)
-
IssuePriority.create!(:name => l(:default_priority_low), :position => 1)
IssuePriority.create!(:name => l(:default_priority_normal), :position => 2, :is_default => true)
IssuePriority.create!(:name => l(:default_priority_high), :position => 3)
IssuePriority.create!(:name => l(:default_priority_urgent), :position => 4)
IssuePriority.create!(:name => l(:default_priority_immediate), :position => 5)
+ DocumentCategory.create!(:name => l(:default_doc_category_user), :position => 1)
+ DocumentCategory.create!(:name => l(:default_doc_category_tech), :position => 2)
+
TimeEntryActivity.create!(:name => l(:default_activity_design), :position => 1)
TimeEntryActivity.create!(:name => l(:default_activity_development), :position => 2)
end
def test_redmine_links
issue_link = link_to('#3', {:controller => 'issues', :action => 'show', :id => 3},
- :class => 'issue status-1 priority-1 overdue', :title => 'Error 281 when updating a recipe (New)')
+ :class => 'issue status-1 priority-4 overdue', :title => 'Error 281 when updating a recipe (New)')
note_link = link_to('#3', {:controller => 'issues', :action => 'show', :id => 3, :anchor => 'note-14'},
- :class => 'issue status-1 priority-1 overdue', :title => 'Error 281 when updating a recipe (New)')
+ :class => 'issue status-1 priority-4 overdue', :title => 'Error 281 when updating a recipe (New)')
changeset_link = link_to('r1', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :rev => 1},
:class => 'changeset', :title => 'My very first commit')
expected = <<-EXPECTED
<p><a href="/projects/ecookbook/wiki/CookBook_documentation" class="wiki-page">CookBook documentation</a></p>
-<p><a href="/issues/1" class="issue status-1 priority-1" title="Can't print recipes (New)">#1</a></p>
+<p><a href="/issues/1" class="issue status-1 priority-4" title="Can't print recipes (New)">#1</a></p>
<pre>
[[CookBook documentation]]