marker_spec.rb 373 B

12345678910111213141516
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. describe Marker do
  4. describe 'validations' do
  5. describe 'timeline' do
  6. it 'must be included in valid list' do
  7. record = described_class.new(timeline: 'not real timeline')
  8. expect(record).to_not be_valid
  9. expect(record).to model_have_error_on_field(:timeline)
  10. end
  11. end
  12. end
  13. end