Commit a4f7629f authored by Eric Davis's avatar Eric Davis

[#400] Fix some tests broken by 66561031

parent 66561031
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment