debian-mirror-gitlab/spec/serializers/note_entity_spec.rb

18 lines
380 B
Ruby
Raw Normal View History

2019-12-21 20:55:43 +05:30
# frozen_string_literal: true
2018-03-17 18:26:18 +05:30
require 'spec_helper'
describe NoteEntity do
include Gitlab::Routing
let(:request) { double('request', current_user: user, noteable: note.noteable) }
let(:entity) { described_class.new(note, request: request) }
let(:note) { create(:note) }
let(:user) { create(:user) }
2020-01-01 13:55:28 +05:30
2018-03-17 18:26:18 +05:30
subject { entity.as_json }
2018-05-09 12:01:36 +05:30
it_behaves_like 'note entity'
2018-03-17 18:26:18 +05:30
end