mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-22 19:42:29 +00:00
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@18406 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
fe0a89d7d1
commit
6fad37715a
@ -115,14 +115,16 @@ class VersionsControllerTest < Redmine::ControllerTest
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user