summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/lib/gitlab/auth/atlassian_identity_shared_examples.rb
blob: 18a5087da3b2f7e8f41dc134c4b58c2258c6b8c8 (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

RSpec.shared_examples 'an atlassian identity' do
  it 'sets the proper values' do
    expect(identity.extern_uid).to eq(extern_uid)
    expect(identity.token).to eq(credentials[:token])
    expect(identity.refresh_token).to eq(credentials[:refresh_token])
    expect(identity.expires_at.to_i).to eq(credentials[:expires_at])
  end
end