Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2016-12-14 21:19:26 +0300
committerValery Sizov <valery@gitlab.com>2016-12-14 21:19:26 +0300
commitc756e62b08f0a639f5550d17339b2938c9c9e096 (patch)
treeb4c3abe28080b48a72159d611ccc37b7c8b3e6a8 /spec/lib/bitbucket/representation/issue_spec.rb
parent6bbe2f118ee17ac8b1d43a77f4020c048c427b77 (diff)
BB importer: fix specs
Diffstat (limited to 'spec/lib/bitbucket/representation/issue_spec.rb')
-rw-r--r--spec/lib/bitbucket/representation/issue_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/bitbucket/representation/issue_spec.rb b/spec/lib/bitbucket/representation/issue_spec.rb
index 56deae63bbc..e1f3419c77e 100644
--- a/spec/lib/bitbucket/representation/issue_spec.rb
+++ b/spec/lib/bitbucket/representation/issue_spec.rb
@@ -10,12 +10,12 @@ describe Bitbucket::Representation::Issue do
end
describe '#author' do
- it { expect(described_class.new({ 'reporter' => { 'username' => 'Ben' }}).author).to eq('Ben') }
- it { expect(described_class.new({}).author).to eq('Anonymous') }
+ it { expect(described_class.new({ 'reporter' => { 'username' => 'Ben' } }).author).to eq('Ben') }
+ it { expect(described_class.new({}).author).to be_nil }
end
describe '#description' do
- it { expect(described_class.new({ 'content' => { 'raw' => 'Text' }}).description).to eq('Text') }
+ it { expect(described_class.new({ 'content' => { 'raw' => 'Text' } }).description).to eq('Text') }
it { expect(described_class.new({}).description).to be_nil }
end