This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
2018-12-10 15:37:38 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
2023-05-03 23:49:53 -04:00
|
|
|
RSpec.describe Admin::TagsController do
|
2018-12-10 15:37:38 -05:00
|
|
|
render_views
|
|
|
|
|
|
|
|
before do
|
2022-07-04 20:41:40 -04:00
|
|
|
sign_in Fabricate(:user, role: UserRole.find_by(name: 'Admin'))
|
2018-12-10 15:37:38 -05:00
|
|
|
end
|
|
|
|
|
2021-03-26 13:36:16 -04:00
|
|
|
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
|
2018-12-10 15:37:38 -05:00
|
|
|
end
|