summaryrefslogtreecommitdiffstats
path: root/test/functional/repositories_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-04-04 06:10:07 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-04-04 06:10:07 +0000
commita423a03b76c67ece9bc61ad4c376c8f2b5b9a420 (patch)
treedc0e21a9c4e6f221432c3dc728b17fb74cfdb8c4 /test/functional/repositories_controller_test.rb
parent9d7595c35f1a5bd34f6c2927a032249f42c73667 (diff)
downloadredmine-a423a03b76c67ece9bc61ad4c376c8f2b5b9a420.tar.gz
redmine-a423a03b76c67ece9bc61ad4c376c8f2b5b9a420.zip
skip RepositoriesControllerTest#test_show_should_show_diff_button_depending_on_browse_repository_permission when subversion test repository does not exist
git-svn-id: http://svn.redmine.org/redmine/trunk@18035 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_controller_test.rb')
-rw-r--r--test/functional/repositories_controller_test.rb32
1 files changed, 17 insertions, 15 deletions
diff --git a/test/functional/repositories_controller_test.rb b/test/functional/repositories_controller_test.rb
index 19debb4dc..c0d77b03e 100644
--- a/test/functional/repositories_controller_test.rb
+++ b/test/functional/repositories_controller_test.rb
@@ -182,23 +182,25 @@ class RepositoriesControllerTest < Redmine::RepositoryControllerTest
end
end
- def test_show_should_show_diff_button_depending_on_browse_repository_permission
- @request.session[:user_id] = 2
- role = Role.find(1)
+ if repository_configured?('subversion')
+ def test_show_should_show_diff_button_depending_on_browse_repository_permission
+ @request.session[:user_id] = 2
+ role = Role.find(1)
- role.add_permission! :browse_repository
- get :show, :params => {
- :id => 1
- }
- assert_response :success
- assert_select 'input[value="View differences"]'
+ role.add_permission! :browse_repository
+ get :show, :params => {
+ :id => 1
+ }
+ assert_response :success
+ assert_select 'input[value="View differences"]'
- role.remove_permission! :browse_repository
- get :show, :params => {
- :id => 1
- }
- assert_response :success
- assert_select 'input[value="View differences"]', :count => 0
+ role.remove_permission! :browse_repository
+ get :show, :params => {
+ :id => 1
+ }
+ assert_response :success
+ assert_select 'input[value="View differences"]', :count => 0
+ end
end
def test_revisions