Convert admin/trends/* spec controller->system (#34003)
				
					
				
			This commit is contained in:
		@@ -1,21 +0,0 @@
 | 
			
		||||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
require 'rails_helper'
 | 
			
		||||
 | 
			
		||||
RSpec.describe Admin::Trends::Links::PreviewCardProvidersController do
 | 
			
		||||
  render_views
 | 
			
		||||
 | 
			
		||||
  let(:user) { Fabricate(:admin_user) }
 | 
			
		||||
 | 
			
		||||
  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
 | 
			
		||||
@@ -1,21 +0,0 @@
 | 
			
		||||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
require 'rails_helper'
 | 
			
		||||
 | 
			
		||||
RSpec.describe Admin::Trends::LinksController do
 | 
			
		||||
  render_views
 | 
			
		||||
 | 
			
		||||
  let(:user) { Fabricate(:admin_user) }
 | 
			
		||||
 | 
			
		||||
  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
 | 
			
		||||
@@ -1,21 +0,0 @@
 | 
			
		||||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
require 'rails_helper'
 | 
			
		||||
 | 
			
		||||
RSpec.describe Admin::Trends::StatusesController do
 | 
			
		||||
  render_views
 | 
			
		||||
 | 
			
		||||
  let(:user) { Fabricate(:admin_user) }
 | 
			
		||||
 | 
			
		||||
  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
 | 
			
		||||
@@ -1,21 +0,0 @@
 | 
			
		||||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
require 'rails_helper'
 | 
			
		||||
 | 
			
		||||
RSpec.describe Admin::Trends::TagsController do
 | 
			
		||||
  render_views
 | 
			
		||||
 | 
			
		||||
  let(:user) { Fabricate(:admin_user) }
 | 
			
		||||
 | 
			
		||||
  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
 | 
			
		||||
@@ -11,6 +11,8 @@ RSpec.describe 'Admin::Trends::Links::PreviewCardProviders' do
 | 
			
		||||
    context 'without selecting any records' do
 | 
			
		||||
      it 'displays a notice about selection' do
 | 
			
		||||
        visit admin_trends_links_preview_card_providers_path
 | 
			
		||||
        expect(page)
 | 
			
		||||
          .to have_title(I18n.t('admin.trends.preview_card_providers.title'))
 | 
			
		||||
 | 
			
		||||
        click_on button_for_allow
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -11,6 +11,8 @@ RSpec.describe 'Admin::Trends::Links' do
 | 
			
		||||
    context 'without selecting any records' do
 | 
			
		||||
      it 'displays a notice about selection' do
 | 
			
		||||
        visit admin_trends_links_path
 | 
			
		||||
        expect(page)
 | 
			
		||||
          .to have_title(I18n.t('admin.trends.links.title'))
 | 
			
		||||
 | 
			
		||||
        click_on button_for_allow
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -11,6 +11,8 @@ RSpec.describe 'Admin::Trends::Statuses' do
 | 
			
		||||
    context 'without selecting any records' do
 | 
			
		||||
      it 'displays a notice about selection' do
 | 
			
		||||
        visit admin_trends_statuses_path
 | 
			
		||||
        expect(page)
 | 
			
		||||
          .to have_title(I18n.t('admin.trends.statuses.title'))
 | 
			
		||||
 | 
			
		||||
        click_on button_for_allow
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -11,6 +11,8 @@ RSpec.describe 'Admin::Trends::Tags' do
 | 
			
		||||
    context 'without selecting any records' do
 | 
			
		||||
      it 'displays a notice about selection' do
 | 
			
		||||
        visit admin_trends_tags_path
 | 
			
		||||
        expect(page)
 | 
			
		||||
          .to have_title(I18n.t('admin.trends.tags.title'))
 | 
			
		||||
 | 
			
		||||
        click_on button_for_allow
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user