Fix issuable_bulk_update_path and merge request spinach test

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2016-09-07 16:18:15 +03:00
parent af9dc9736e
commit 035a38f18e
2 changed files with 6 additions and 4 deletions

View file

@ -113,10 +113,10 @@ module IssuablesHelper
end end
def issuable_bulk_update_path(type) def issuable_bulk_update_path(type)
if type == "issue" if type == :merge_requests
bulk_update_namespace_project_issues_path(@project.namespace, @project)
else
bulk_update_namespace_project_merge_requests_path(@project.namespace, @project) bulk_update_namespace_project_merge_requests_path(@project.namespace, @project)
else
bulk_update_namespace_project_issues_path(@project.namespace, @project)
end end
end end
end end

View file

@ -31,7 +31,9 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end end
step 'I click link "Closed"' do step 'I click link "Closed"' do
click_link "Closed" page.within('.issues-state-filters') do
click_link "Closed"
end
end end
step 'I should see merge request "Wiki Feature"' do step 'I should see merge request "Wiki Feature"' do