diff options
author | Matt Jankowski <matt@jankowski.online> | 2023-03-04 11:16:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-04 17:16:45 +0100 |
commit | 506b16cf595bf441b9a85db608b6d19e8934fd7d (patch) | |
tree | b3e2a2ef9f519e5298539c684631be6c2726d817 /spec/models/marker_spec.rb | |
parent | 7f4412eeeb1d35c9345c213b2cdfbbb9ce97dabb (diff) |
Pending example models minimal coverage (#23912)
Diffstat (limited to 'spec/models/marker_spec.rb')
-rw-r--r-- | spec/models/marker_spec.rb | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/spec/models/marker_spec.rb b/spec/models/marker_spec.rb index e8561c4c6..51dd58438 100644 --- a/spec/models/marker_spec.rb +++ b/spec/models/marker_spec.rb @@ -2,6 +2,15 @@ require 'rails_helper' -RSpec.describe Marker, type: :model do - pending "add some examples to (or delete) #{__FILE__}" +describe Marker do + describe 'validations' do + describe 'timeline' do + it 'must be included in valid list' do + record = described_class.new(timeline: 'not real timeline') + + expect(record).to_not be_valid + expect(record).to model_have_error_on_field(:timeline) + end + end + end end |