diff options
Diffstat (limited to 'spec/serializers/evidences/issue_entity_spec.rb')
-rw-r--r-- | spec/serializers/evidences/issue_entity_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/serializers/evidences/issue_entity_spec.rb b/spec/serializers/evidences/issue_entity_spec.rb new file mode 100644 index 00000000000..a1402808757 --- /dev/null +++ b/spec/serializers/evidences/issue_entity_spec.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +require 'spec_helper' + +describe Evidences::IssueEntity do + let(:entity) { described_class.new(build(:issue)) } + + subject { entity.as_json } + + it 'exposes the expected fields' do + expect(subject.keys).to contain_exactly(:id, :title, :description, :author, :state, :iid, :confidential, :created_at, :due_date) + end +end |