From 27fc49d74546d689307e1e712e0b46ccce98867b Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 28 Nov 2016 18:45:13 +0100 Subject: Add simple admin overview of PuSH subscriptions --- spec/controllers/admin/pubsubhubbub_controller_spec.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 spec/controllers/admin/pubsubhubbub_controller_spec.rb (limited to 'spec/controllers/admin') 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 -- cgit