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

15 lines
348 B
Ruby
Raw Normal View History

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) }
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