diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-28 18:45:13 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-28 18:45:13 +0100 |
commit | 27fc49d74546d689307e1e712e0b46ccce98867b (patch) | |
tree | d7eca67f2a322d656c22fced15e722e7b46f2da3 /spec/controllers/admin | |
parent | 7e5e33df48e507e18a226edc8dfecbf554d38647 (diff) |
Add simple admin overview of PuSH subscriptions
Diffstat (limited to 'spec/controllers/admin')
-rw-r--r-- | spec/controllers/admin/pubsubhubbub_controller_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/controllers/admin/pubsubhubbub_controller_spec.rb b/spec/controllers/admin/pubsubhubbub_controller_spec.rb new file mode 100644 index 000000000..4e8016b70 --- /dev/null +++ b/spec/controllers/admin/pubsubhubbub_controller_spec.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true +require 'rails_helper' + +RSpec.describe Admin::PubsubhubbubController, type: :controller do + describe 'GET #index' do + before do + sign_in :user, Fabricate(:user, admin: true) + end + + it 'returns http success' do + get :index + expect(response).to have_http_status(:success) + end + end +end |