2017-08-11 12:48:06 -04:00
|
|
|
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-04-03 12:03:00 -04:00
|
|
|
it_behaves_like 'note entity'
|
2017-08-11 12:48:06 -04:00
|
|
|
end
|