summaryrefslogtreecommitdiff
path: root/spec/lib/bitbucket/representation/pull_request_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/bitbucket/representation/pull_request_spec.rb')
-rw-r--r--spec/lib/bitbucket/representation/pull_request_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/bitbucket/representation/pull_request_spec.rb b/spec/lib/bitbucket/representation/pull_request_spec.rb
index 661422efddf..30453528be4 100644
--- a/spec/lib/bitbucket/representation/pull_request_spec.rb
+++ b/spec/lib/bitbucket/representation/pull_request_spec.rb
@@ -6,8 +6,8 @@ describe Bitbucket::Representation::PullRequest do
end
describe '#author' do
- it { expect(described_class.new({ 'author' => { 'username' => 'Ben' }}).author).to eq('Ben') }
- it { expect(described_class.new({}).author).to eq('Anonymous') }
+ it { expect(described_class.new({ 'author' => { 'username' => 'Ben' } }).author).to eq('Ben') }
+ it { expect(described_class.new({}).author).to be_nil }
end
describe '#description' do