2019-03-30 03:23:56 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2014-07-29 10:10:15 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 14:09:03 -04:00
|
|
|
RSpec.describe LabelLink do
|
2016-10-11 01:58:46 -04:00
|
|
|
it { expect(build(:label_link)).to be_valid }
|
2014-07-29 10:10:15 -04:00
|
|
|
|
2015-02-12 13:17:35 -05:00
|
|
|
it { is_expected.to belong_to(:label) }
|
|
|
|
it { is_expected.to belong_to(:target) }
|
2020-02-12 16:08:48 -05:00
|
|
|
|
2020-03-03 07:08:08 -05:00
|
|
|
it_behaves_like 'a BulkInsertSafe model', LabelLink do
|
|
|
|
let(:valid_items_for_bulk_insertion) { build_list(:label_link, 10) }
|
|
|
|
let(:invalid_items_for_bulk_insertion) { [] } # class does not have any validations defined
|
|
|
|
end
|
2014-07-29 10:10:15 -04:00
|
|
|
end
|