summaryrefslogtreecommitdiff
path: root/spec/services/jira_import/server_users_mapper_service_spec.rb
blob: 22cb0327cc5525325a8c2b19cdd4ff6760fa0974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe JiraImport::ServerUsersMapperService do
  let(:start_at) { 7 }
  let(:url) { "/rest/api/2/user/search?username=''&maxResults=50&startAt=#{start_at}" }
  let(:jira_users) do
    [
      { 'key' => 'abcd', 'name' => 'user1' },
      { 'key' => 'efg' },
      { 'key' => 'hij', 'name' => 'user3', 'emailAddress' => 'user3@example.com' }
    ]
  end

  describe '#execute' do
    it_behaves_like 'mapping jira users'
  end
end