...@@ -18,7 +18,11 @@ module QA ...@@ -18,7 +18,11 @@ module QA
end end
attribute :path_with_namespace do attribute :path_with_namespace do
"#{group.sandbox.path}/#{group.path}/#{name}" if group "#{sandbox_path}#{group.path}/#{name}" if group
end
def sandbox_path
group.respond_to?('sandbox') ? "#{group.sandbox.path}/" : ''
end end
attribute :repository_ssh_location do attribute :repository_ssh_location do
... ...
......
...@@ -44,6 +44,10 @@ module QA ...@@ -44,6 +44,10 @@ module QA
"/groups/#{path}" "/groups/#{path}"
end end
def api_members_path
"#{api_get_path}/members"
end
def api_post_path def api_post_path
'/groups' '/groups'
end end
... ...
......