Skip to content

Commit b7e0d4e

Browse files
committed
Add test and fix getter method for download in repos.rb
1 parent 88bbcc9 commit b7e0d4e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/bitbucket_rest_api/repos.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ def forks
7272
@forks ||= ApiFactory.new 'Repos::Forks'
7373
end
7474
def commits
75-
@services ||=ApiFactory.new 'Repos::Commits'
75+
@commits ||=ApiFactory.new 'Repos::Commits'
7676
end
7777
def download
78-
@services ||=ApiFactory.new "Repos::Download"
78+
@download ||=ApiFactory.new "Repos::Download"
7979
end
8080

8181
# Access to Repos::PullRequests API

spec/bitbucket_rest_api/repos_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
expect(repo.commits).to be_a BitBucket::Repos::Commits
152152
expect(repo.pull_request).to be_a BitBucket::Repos::PullRequest
153153
expect(repo.forks).to be_a BitBucket::Repos::Forks
154+
expect(repo.download).to be_a BitBucket::Repos::Download
154155
end
155156
end
156157
end

0 commit comments

Comments
 (0)