diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-04-18 15:09:07 -0400 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-18 21:09:07 +0200 |
commit | 55e150352204bc790345cf81ef02bfcb1d7e0594 (patch) | |
tree | b9c58621d9d6921a1d970a48f8e0713eef790345 /spec/controllers | |
parent | 66d8f99a30f9e6062f1bff37d5115beddce9b55d (diff) |
Instances list in admin (#2095)
* Add admin/instances index action * Add link to instances admin page * View lists instances * Instances, grouped by domain, ordered by count * Use Account.remote scope * Extract method: Account.by_domain_accounts
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/admin/instances_controller_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/controllers/admin/instances_controller_spec.rb b/spec/controllers/admin/instances_controller_spec.rb new file mode 100644 index 000000000..c50ea352f --- /dev/null +++ b/spec/controllers/admin/instances_controller_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +RSpec.describe Admin::InstancesController, type: :controller do + before do + sign_in Fabricate(:user, admin: true), scope: :user + end + + describe 'GET #index' do + it 'returns http success' do + get :index + + expect(response).to have_http_status(:success) + end + end +end |