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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/bitbucket/representation/pull_request_spec.rb b/spec/lib/bitbucket/representation/pull_request_spec.rb
index 7cf43b2b6fd..70b51b8efec 100644
--- a/spec/lib/bitbucket/representation/pull_request_spec.rb
+++ b/spec/lib/bitbucket/representation/pull_request_spec.rb
@@ -8,7 +8,7 @@ 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' => { 'nickname' => 'Ben' } }).author).to eq('Ben') }
it { expect(described_class.new({}).author).to be_nil }
end