diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-09-23 01:57:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-23 01:57:23 +0200 |
commit | 293972f716476933df2b665ad755cafe4d29d82d (patch) | |
tree | 6719153a554c918800d8eb3f1624d9e0d666318c /spec/controllers | |
parent | 9c8e602163811fc9a21c5ae78d53d46d7dbc8db7 (diff) |
New API: GET /api/v1/custom_emojis to get a server's custom emojis (#5051)
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/api/v1/custom_emojis_controller_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/controllers/api/v1/custom_emojis_controller_spec.rb b/spec/controllers/api/v1/custom_emojis_controller_spec.rb new file mode 100644 index 000000000..9f3522812 --- /dev/null +++ b/spec/controllers/api/v1/custom_emojis_controller_spec.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +require 'rails_helper' + +RSpec.describe Api::V1::CustomEmojisController, type: :controller 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(:success) + end + end +end |