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'
|
|
|
|
|
|
|
|
RSpec.describe Admin::TagsController, type: :controller do
|
|
|
|
render_views
|
|
|
|
|
|
|
|
before do
|
|
|
|
sign_in Fabricate(:user, admin: true)
|
|
|
|
end
|
|
|
|
|
|
|
|
describe 'GET #index' do
|
2019-08-05 13:54:29 -04:00
|
|
|
let!(:tag) { Fabricate(:tag) }
|
2018-12-10 15:37:38 -05:00
|
|
|
|
|
|
|
before do
|
2019-08-05 13:54:29 -04:00
|
|
|
get :index
|
2018-12-10 15:37:38 -05:00
|
|
|
end
|
|
|
|
|
2019-08-05 13:54:29 -04:00
|
|
|
it 'returns status 200' do
|
|
|
|
expect(response).to have_http_status(200)
|
2018-12-10 15:37:38 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|