about summary refs log tree commit diff
path: root/spec/controllers/api
diff options
context:
space:
mode:
authorSurinna Curtis <ekiru.0@gmail.com>2017-09-02 12:24:58 -0500
committerSurinna Curtis <ekiru.0@gmail.com>2017-09-13 21:47:30 -0500
commit70592cdaba18f97bc4ba492445b1800033c58619 (patch)
treea62d09ce6d1cd623cd2913c111e72d58babfb534 /spec/controllers/api
parent30b5254a5dec0d18cb8c18e0ce48a57fea560f4b (diff)
Add a /api/v1/mutes/details route that just returns the array of mutes.
Diffstat (limited to 'spec/controllers/api')
-rw-r--r--spec/controllers/api/v1/mutes_controller_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/controllers/api/v1/mutes_controller_spec.rb b/spec/controllers/api/v1/mutes_controller_spec.rb
index 3e6fa887b..9da83236a 100644
--- a/spec/controllers/api/v1/mutes_controller_spec.rb
+++ b/spec/controllers/api/v1/mutes_controller_spec.rb
@@ -18,4 +18,12 @@ RSpec.describe Api::V1::MutesController, type: :controller do
       expect(response).to have_http_status(:success)
     end
   end
+
+  describe 'GET #details' do
+    it 'returns http success' do
+      get :details, params: { limit: 1 }
+
+      expect(response).to have_http_status(:success)
+    end
+  end
 end