end
def test_show
- get :show, :params => {:id => 2}
- assert_response :success
+ with_settings :gravatar_enabled => '0' do
+ get :show, :params => {:id => 2}
+ assert_response :success
- assert_select 'h2', :text => /1.0/
- assert_select 'span[class=?]', 'badge badge-status-locked', :text => 'locked'
+ assert_select 'h2', :text => /1.0/
+ assert_select 'span[class=?]', 'badge badge-status-locked', :text => 'locked'
- # no issue avatar when gravatar is disabled
- assert_select 'img.gravatar', :count => 0
+ # no issue avatar when gravatar is disabled
+ assert_select 'img.gravatar', :count => 0
+ end
end
def test_show_should_show_issue_assignee