[#400] Fix some tests broken by 6656103

This commit is contained in:
Eric Davis 2011-05-20 14:22:55 -07:00
parent 66561031eb
commit a4f7629f1f
2 changed files with 3 additions and 4 deletions

View File

@ -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',

View File

@ -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