BigW Consortium Gitlab

label_link_spec.rb 460 Bytes
Newer Older
Dmitriy Zaporozhets committed
1 2 3 4 5 6 7 8 9 10 11 12
# == Schema Information
#
# Table name: label_links
#
#  id          :integer          not null, primary key
#  label_id    :integer
#  target_id   :integer
#  target_type :string(255)
#  created_at  :datetime
#  updated_at  :datetime
#

13 14
require 'spec_helper'

Douwe Maan committed
15
describe LabelLink, models: true do
16
  let(:label) { create(:label_link) }
17
  it { expect(label).to be_valid }
18

19 20
  it { is_expected.to belong_to(:label) }
  it { is_expected.to belong_to(:target) }
21
end