about summary refs log tree commit diff
path: root/spec/controllers/api/v1/custom_emojis_controller_spec.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-09-23 01:57:23 +0200
committerGitHub <noreply@github.com>2017-09-23 01:57:23 +0200
commit293972f716476933df2b665ad755cafe4d29d82d (patch)
tree6719153a554c918800d8eb3f1624d9e0d666318c /spec/controllers/api/v1/custom_emojis_controller_spec.rb
parent9c8e602163811fc9a21c5ae78d53d46d7dbc8db7 (diff)
New API: GET /api/v1/custom_emojis to get a server's custom emojis (#5051)
Diffstat (limited to 'spec/controllers/api/v1/custom_emojis_controller_spec.rb')
-rw-r--r--spec/controllers/api/v1/custom_emojis_controller_spec.rb18
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