diff options
Diffstat (limited to 'qa/qa/resource/wiki/project_page.rb')
-rw-r--r-- | qa/qa/resource/wiki/project_page.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/qa/qa/resource/wiki/project_page.rb b/qa/qa/resource/wiki/project_page.rb index 8bcc4bfe220..04a6ebd9a35 100644 --- a/qa/qa/resource/wiki/project_page.rb +++ b/qa/qa/resource/wiki/project_page.rb @@ -8,6 +8,9 @@ module QA attribute :content attribute :slug attribute :format + attribute :web_url do + "#{project.web_url}/-/wikis/#{slug}" + end attribute :project do Project.fabricate_via_api! do |project| @@ -29,12 +32,8 @@ module QA @content = 'This wiki page is created by the API' end - def resource_web_url(resource) - super - rescue ResourceURLMissingError - # TODO - # workaround - "#{project.web_url}/-/wikis/#{slug}" + def resource_web_url(_) + web_url end def api_get_path |