diff options
author | Stan Hu <stanhu@gmail.com> | 2018-07-20 21:46:01 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-07-20 21:47:00 -0700 |
commit | 7c1aaf68f82f05fd34f567be2481b8283e3328c2 (patch) | |
tree | 15151b7388cbb07b7a9791a95e36d41ba6a31abd /lib/bitbucket_server/representation | |
parent | 48ea89af121bdf627fc08673f9203e5f05dc0776 (diff) | |
download | gitlab-ce-7c1aaf68f82f05fd34f567be2481b8283e3328c2.tar.gz |
Add spec for BitbucketServer::Representation::Repo
Diffstat (limited to 'lib/bitbucket_server/representation')
-rw-r--r-- | lib/bitbucket_server/representation/repo.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/bitbucket_server/representation/repo.rb b/lib/bitbucket_server/representation/repo.rb index 8e163e8a1fc..1338f877fc1 100644 --- a/lib/bitbucket_server/representation/repo.rb +++ b/lib/bitbucket_server/representation/repo.rb @@ -9,10 +9,6 @@ module BitbucketServer raw.dig('project', 'name') end - def owner - project['name'] - end - def slug raw['slug'] end @@ -30,7 +26,7 @@ module BitbucketServer end def full_name - "#{owner}/#{name}" + "#{project_name}/#{name}" end def issues_enabled? @@ -45,10 +41,6 @@ module BitbucketServer raw['scmId'] == 'git' end - def has_wiki? - false - end - def visibility_level if project['public'] Gitlab::VisibilityLevel::PUBLIC |