summaryrefslogtreecommitdiff
path: root/spec/models/application_record_spec.rb
blob: 68aed387bfc1a624c687fef267497e7acf6ad4f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

describe ApplicationRecord do
  describe '#id_in' do
    let(:records) { create_list(:user, 3) }

    it 'returns records of the ids' do
      expect(User.id_in(records.last(2).map(&:id))).to eq(records.last(2))
    end
  end
end