summaryrefslogtreecommitdiff
path: root/spec/lib/bitbucket/representation/issue_spec.rb
diff options
context:
space:
mode:
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