Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-23 15:33:20 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-23 15:33:20 +0400
commit484c09792c5c6b4f8f1111978a82cf080a31a920 (patch)
tree02e8b834668bdb67abb555bf5ccc26f7315521f6
parentb44138ae4030bb5b63af4f4d835ddceb06c1b953 (diff)
Fix tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--app/views/projects/tree/show.html.haml2
-rw-r--r--features/steps/project/browse_branches.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/tree/show.html.haml b/app/views/projects/tree/show.html.haml
index 6b33493b7d2..735ffae9e2c 100644
--- a/app/views/projects/tree/show.html.haml
+++ b/app/views/projects/tree/show.html.haml
@@ -1,6 +1,6 @@
%div.tree-ref-holder
= render 'shared/ref_switcher', destination: 'tree', path: @path
- if can? current_user, :download_code, @project
- = render 'projects/repositories/download_archive', ref: @ref, btn_class: 'btn-group-small tree-ref-holder pull-right', split_button: true
+ = render 'projects/repositories/download_archive', ref: @ref, btn_class: 'btn-group-small pull-right', split_button: true
%div#tree-holder.tree-holder
= render "tree", tree: @tree
diff --git a/features/steps/project/browse_branches.rb b/features/steps/project/browse_branches.rb
index 30c8cef80c8..5b5e8ba493e 100644
--- a/features/steps/project/browse_branches.rb
+++ b/features/steps/project/browse_branches.rb
@@ -44,7 +44,7 @@ class ProjectBrowseBranches < Spinach::FeatureSteps
end
step 'I should see new branch created' do
- within '.all-branches' do
+ within '.tree-ref-holder' do
page.should have_content 'deploy_keys'
end
end