aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/line_referential_spec.rb
blob: 46434a7ab8bfe481290632fbe1beb623cd90208c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
RSpec.describe LineReferential, type: :model do
  it 'should have a valid factory' do
    expect(FactoryGirl.build(:line_referential)).to be_valid
  end

  it { should validate_presence_of(:name) }
  it { is_expected.to have_many(:line_referential_syncs) }
  it { is_expected.to have_many(:workbenches) }
  it { should validate_presence_of(:sync_interval) }
  it { should validate_presence_of(:objectid_format) }

end