Skip to content

Commit 88bbcc9

Browse files
committed
Add test and fix getter method for forks in repos.rb
1 parent 9b4aeac commit 88bbcc9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/bitbucket_rest_api/repos.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def services
6969
@services ||= ApiFactory.new 'Repos::Services'
7070
end
7171
def forks
72-
@services ||= ApiFactory.new 'Repos::Forks'
72+
@forks ||= ApiFactory.new 'Repos::Forks'
7373
end
7474
def commits
7575
@services ||=ApiFactory.new 'Repos::Commits'

spec/bitbucket_rest_api/repos_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150
expect(repo.following).to be_a BitBucket::Repos::Following
151151
expect(repo.commits).to be_a BitBucket::Repos::Commits
152152
expect(repo.pull_request).to be_a BitBucket::Repos::PullRequest
153+
expect(repo.forks).to be_a BitBucket::Repos::Forks
153154
end
154155
end
155156
end

0 commit comments

Comments
 (0)