Convert api/v1/custom_emojis
controller spec to request spec (#27985)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
c260a68f54
commit
718c95e7af
2 changed files with 45 additions and 18 deletions
|
@ -1,18 +0,0 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Api::V1::CustomEmojisController do
|
||||
render_views
|
||||
|
||||
describe 'GET #index' do
|
||||
before do
|
||||
Fabricate(:custom_emoji)
|
||||
get :index
|
||||
end
|
||||
|
||||
it 'returns http success' do
|
||||
expect(response).to have_http_status(200)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue