about summary refs log tree commit diff
path: root/spec/models/marker_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/marker_spec.rb')
-rw-r--r--spec/models/marker_spec.rb15
1 files changed, 13 insertions, 2 deletions
diff --git a/spec/models/marker_spec.rb b/spec/models/marker_spec.rb
index d716aa75c..51dd58438 100644
--- a/spec/models/marker_spec.rb
+++ b/spec/models/marker_spec.rb
@@ -1,5 +1,16 @@
+# frozen_string_literal: true
+
 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