parent
66561031eb
commit
a4f7629f1f
|
@ -46,8 +46,7 @@ class Issue < ActiveRecord::Base
|
|||
else
|
||||
t << (IssueStatus.find_by_id(o.new_value_for(:status_id)).try(:is_closed?) ? '-closed' : '-edit')
|
||||
end
|
||||
t },
|
||||
:except => [:description]
|
||||
t }
|
||||
|
||||
register_on_journal_formatter(:id, 'parent_id')
|
||||
register_on_journal_formatter(:named_association, 'project_id', 'status_id', 'tracker_id', 'assigned_to_id',
|
||||
|
|
|
@ -49,10 +49,10 @@ class SearchControllerTest < ActionController::TestCase
|
|||
get :index, :q => 'issue', :issues => 1
|
||||
assert_response :success
|
||||
assert_template 'index'
|
||||
|
||||
|
||||
assert assigns(:results).include?(Issue.find(8))
|
||||
assert assigns(:results).include?(Issue.find(5))
|
||||
assert_tag :dt, :attributes => { :class => /issue closed/ },
|
||||
assert_tag :dt, :attributes => { :class => /issue/ },
|
||||
:child => { :tag => 'a', :content => /Closed/ }
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue