diff options
author | Matt Jankowski <matt@jankowski.online> | 2023-03-04 11:13:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-04 17:13:28 +0100 |
commit | 42ddc451338b7902318ab081218319d56d7150eb (patch) | |
tree | 1c67d193c96bb9f5a1d27471eefe0e0490d7b892 /spec/controllers/admin/trends/statuses_controller_spec.rb | |
parent | ad585fb1959abe38839c30137cf3343737f1d247 (diff) |
Admin controllers specs (#23917)
Diffstat (limited to 'spec/controllers/admin/trends/statuses_controller_spec.rb')
-rw-r--r-- | spec/controllers/admin/trends/statuses_controller_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/controllers/admin/trends/statuses_controller_spec.rb b/spec/controllers/admin/trends/statuses_controller_spec.rb new file mode 100644 index 000000000..b752234d3 --- /dev/null +++ b/spec/controllers/admin/trends/statuses_controller_spec.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +require 'rails_helper' + +describe Admin::Trends::StatusesController do + render_views + + let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) } + + before do + sign_in user, scope: :user + end + + describe 'GET #index' do + it 'returns http success' do + get :index + + expect(response).to have_http_status(:success) + end + end +end |