2019-03-30 07:23:56 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2014-07-29 14:10:15 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 18:09:03 +00:00
|
|
|
RSpec.describe LabelLink do
|
2016-10-11 05:58:46 +00:00
|
|
|
it { expect(build(:label_link)).to be_valid }
|
2014-07-29 14:10:15 +00:00
|
|
|
|
2015-02-12 18:17:35 +00:00
|
|
|
it { is_expected.to belong_to(:label) }
|
|
|
|
it { is_expected.to belong_to(:target) }
|
2020-02-12 21:08:48 +00:00
|
|
|
|
2020-03-03 12:08:08 +00: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 14:10:15 +00:00
|
|
|
end
|