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

22 lines
460 B
Ruby
Raw Normal View History

# == 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
#
require 'spec_helper'
2015-12-09 04:50:51 -05:00
describe LabelLink, models: true do
let(:label) { create(:label_link) }
it { expect(label).to be_valid }
it { is_expected.to belong_to(:label) }
it { is_expected.to belong_to(:target) }
end