aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/line_referential_spec.rb
blob: 8b06f07adf30b71e3aa8965ac5224ed1b3e2a5ab (plain)
1
2
3
4
5
6
7
8
9
10
11
require 'spec_helper'

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 { should validate_presence_of(:sync_interval) }
end