summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-08-28 04:17:09 +0000
committerGo MAEDA <maeda@farend.jp>2019-08-28 04:17:09 +0000
commit6fad37715ad3a83bd9d684d5a9f722a66dabb9bd (patch)
tree7582395755d590d3d7f0e7e219882426008ed80f /test/functional
parentfe0a89d7d172a9214c52aa136f616d55661887f6 (diff)
downloadredmine-6fad37715ad3a83bd9d684d5a9f722a66dabb9bd.tar.gz
redmine-6fad37715ad3a83bd9d684d5a9f722a66dabb9bd.zip
VersionsControllerTest#test_show randomly fails (#31964, #28510).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@18406 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/versions_controller_test.rb14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb
index 358b6f8c0..8981c6932 100644
--- a/test/functional/versions_controller_test.rb
+++ b/test/functional/versions_controller_test.rb
@@ -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