summaryrefslogtreecommitdiff
path: root/lib/bitbucket
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-11-21 20:49:40 -0800
committerStan Hu <stanhu@gmail.com>2016-11-21 20:49:40 -0800
commit402cc95c1a1df8168467f74e21c6df7d48359714 (patch)
treef95e6b587a7e996fa81219b269c344a972e939bd /lib/bitbucket
parent0b72994b63dbbbddaf0e77629249d92890a6e4a4 (diff)
downloadgitlab-ce-402cc95c1a1df8168467f74e21c6df7d48359714.tar.gz
Fix Bitbucket importer spec to pass with 2.0 API
Diffstat (limited to 'lib/bitbucket')
-rw-r--r--lib/bitbucket/page.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bitbucket/page.rb b/lib/bitbucket/page.rb
index b91a173b53c..49d083cc66f 100644
--- a/lib/bitbucket/page.rb
+++ b/lib/bitbucket/page.rb
@@ -22,10 +22,10 @@ module Bitbucket
attrs.map { |attr| { attr.to_sym => raw[attr] } }.reduce(&:merge)
end
- def parse_values(raw, representation_class)
+ def parse_values(raw, bitbucket_rep_class)
return [] unless raw['values'] && raw['values'].is_a?(Array)
- raw['values'].map { |hash| representation_class.new(hash) }
+ raw['values'].map { |hash| bitbucket_rep_class.new(hash) }
end
def representation_class(type)