gitlab-org--gitlab-foss/spec/models/application_record_spec.rb

14 lines
284 B
Ruby
Raw Normal View History

2018-11-22 04:35:28 -05:00
# 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