summaryrefslogtreecommitdiff
path: root/spec/requests/companies_controller/index_companies_controller_spec.rb
blob: c8fb439461a8adb6770db47c7f5744de6865e827 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe 'GET /api/companies', type: :request do
  before(:each) do
    create_list(:company, 12)
  end

  it_behaves_like 'a GET index request' do
    let(:headers) { {} }
    let(:companies) { create_list(:company, 12) }
    let(:route) { '/api/companies' }
    let(:pagination_size) { 10 }
  end
end