Commit 21b37b64 authored by Walmyr Lima e Silva Filho's avatar Walmyr Lima e Silva Filho

Merge branch 'remove-dead-code' into 'master'

Simplify test code

See merge request gitlab-org/gitlab!22805
parents 0f683516 48167067
...@@ -10,6 +10,7 @@ module QA ...@@ -10,6 +10,7 @@ module QA
end end
view 'app/views/projects/issues/_issue.html.haml' do view 'app/views/projects/issues/_issue.html.haml' do
element :issue
element :issue_link, 'link_to issue.title' # rubocop:disable QA/ElementWithPattern element :issue_link, 'link_to issue.title' # rubocop:disable QA/ElementWithPattern
end end
...@@ -38,7 +39,7 @@ module QA ...@@ -38,7 +39,7 @@ module QA
end end
def has_issue?(issue) def has_issue?(issue)
has_element? :issue, issue_title: issue.to_s has_element? :issue, issue_title: issue.title
end end
end end
end end
......
...@@ -38,10 +38,6 @@ module QA ...@@ -38,10 +38,6 @@ module QA
end end
end end
def to_s
@title
end
def api_get_path def api_get_path
"/projects/#{project.id}/issues/#{id}" "/projects/#{project.id}/issues/#{id}"
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment