* Add customizable user roles * Various fixes and improvements * Add migration for old settings and fix tootctl role management
23 lines
439 B
Ruby
23 lines
439 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe Admin::TagsController, type: :controller do
|
|
render_views
|
|
|
|
before do
|
|
sign_in Fabricate(:user, role: UserRole.find_by(name: 'Admin'))
|
|
end
|
|
|
|
describe 'GET #show' do
|
|
let!(:tag) { Fabricate(:tag) }
|
|
|
|
before do
|
|
get :show, params: { id: tag.id }
|
|
end
|
|
|
|
it 'returns status 200' do
|
|
expect(response).to have_http_status(200)
|
|
end
|
|
end
|
|
end
|