summaryrefslogtreecommitdiff
path: root/spec/lib/bitbucket/representation
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2016-12-16 12:12:53 +0200
committerValery Sizov <valery@gitlab.com>2016-12-16 12:12:53 +0200
commite0ef9dc83ebfe102aaf980495b14fd6a06a24fd1 (patch)
treef4df6996d0d3034b41a3162aedfab36c06dd1747 /spec/lib/bitbucket/representation
parentffa35233573acd31725677547555598fc36072e0 (diff)
downloadgitlab-ce-e0ef9dc83ebfe102aaf980495b14fd6a06a24fd1.tar.gz
BB importer: Milestone importer
Diffstat (limited to 'spec/lib/bitbucket/representation')
-rw-r--r--spec/lib/bitbucket/representation/issue_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/bitbucket/representation/issue_spec.rb b/spec/lib/bitbucket/representation/issue_spec.rb
index e1f3419c77e..9a195bebd31 100644
--- a/spec/lib/bitbucket/representation/issue_spec.rb
+++ b/spec/lib/bitbucket/representation/issue_spec.rb
@@ -9,6 +9,12 @@ describe Bitbucket::Representation::Issue do
it { expect(described_class.new('kind' => 'bug').kind).to eq('bug') }
end
+ describe '#milestone' do
+ it { expect(described_class.new({ 'milestone' => { 'name' => '1.0' } }).milestone).to eq('1.0') }
+ it { expect(described_class.new({}).milestone).to be_nil }
+ end
+
+
describe '#author' do
it { expect(described_class.new({ 'reporter' => { 'username' => 'Ben' } }).author).to eq('Ben') }
it { expect(described_class.new({}).author).to be_nil }