Remove all unnecessary spec_helper require statements

The `.rspec` file is doing this for us.
This commit is contained in:
Maikel Linke
2026-01-20 16:34:02 +11:00
parent 3455ceb722
commit dcb6f4676d
507 changed files with 6 additions and 965 deletions

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Api::V0::BaseController do
render_views
controller(Api::V0::BaseController) do

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require 'spec_helper'
module Api
RSpec.describe V0::CustomersController do
include AuthenticationHelper

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require 'spec_helper'
module Api
RSpec.describe V0::EnterpriseFeesController do
include AuthenticationHelper

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Api::V0::EnterprisesController do
render_views

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require 'spec_helper'
module Api
RSpec.describe V0::ExchangeProductsController do
include AuthenticationHelper

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require "spec_helper"
module Api
RSpec.describe V0::LogosController do
include AuthenticationHelper

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require "spec_helper"
RSpec.describe Api::V0::OrderCyclesController do
let!(:distributor) { create(:distributor_enterprise) }
let!(:order_cycle) { create(:simple_order_cycle, distributors: [distributor]) }

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Api::V0::OrdersController do
include AuthenticationHelper

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Api::V0::ProductImagesController do
include AuthenticationHelper
include FileHelper

View File

@@ -1,6 +1,5 @@
# frozen_string_literal: true
require 'spec_helper'
require 'spree/core/product_duplicator'
RSpec.describe Api::V0::ProductsController do

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require "spec_helper"
module Api
RSpec.describe V0::PromoImagesController do
include AuthenticationHelper

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require "spec_helper"
RSpec.describe Api::V0::ReportsController do
let(:params) {
{

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require "spec_helper"
RSpec.describe Api::V0::ReportsController do
let(:enterprise_user) { create(:user, enterprises: [create(:enterprise)]) }
let(:params) {

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Api::V0::ShipmentsController do
render_views

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Api::V0::ShopsController do
include AuthenticationHelper

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require 'spec_helper'
module Api
RSpec.describe V0::StatesController do
render_views

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require 'spec_helper'
module Api
RSpec.describe V0::StatusesController do
render_views

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Api::V0::TaxonsController do
render_views

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require "spec_helper"
module Api
RSpec.describe V0::TermsAndConditionsController do
include AuthenticationHelper

View File

@@ -1,7 +1,5 @@
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Api::V0::VariantsController do
render_views