From d9686d698238ae3473ed92310fab0d23fa181704 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Fri, 22 May 2020 15:54:30 +0200 Subject: [PATCH] Enable spec files to be executed alone This fixes the annoying error ``` NameError: uninitialized constant OrderManagement::Subscriptions::Whatever ``` and let's you execute the spec file in isolation. It slows down way too much having the run the entire engine test suite while developing. And it makes me nervous too. --- .../spec/services/order_management/subscriptions/count_spec.rb | 2 ++ .../services/order_management/subscriptions/estimator_spec.rb | 2 ++ .../order_management/subscriptions/proxy_order_syncer_spec.rb | 2 ++ .../services/order_management/subscriptions/summary_spec.rb | 2 ++ 4 files changed, 8 insertions(+) diff --git a/engines/order_management/spec/services/order_management/subscriptions/count_spec.rb b/engines/order_management/spec/services/order_management/subscriptions/count_spec.rb index 14b5a8c041..75b4e47111 100644 --- a/engines/order_management/spec/services/order_management/subscriptions/count_spec.rb +++ b/engines/order_management/spec/services/order_management/subscriptions/count_spec.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require 'spec_helper' + module OrderManagement module Subscriptions describe Count do diff --git a/engines/order_management/spec/services/order_management/subscriptions/estimator_spec.rb b/engines/order_management/spec/services/order_management/subscriptions/estimator_spec.rb index e8fe7bf957..63032465d6 100644 --- a/engines/order_management/spec/services/order_management/subscriptions/estimator_spec.rb +++ b/engines/order_management/spec/services/order_management/subscriptions/estimator_spec.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require 'spec_helper' + module OrderManagement module Subscriptions describe Estimator do diff --git a/engines/order_management/spec/services/order_management/subscriptions/proxy_order_syncer_spec.rb b/engines/order_management/spec/services/order_management/subscriptions/proxy_order_syncer_spec.rb index 501f6fa67e..fc14e7ff4b 100644 --- a/engines/order_management/spec/services/order_management/subscriptions/proxy_order_syncer_spec.rb +++ b/engines/order_management/spec/services/order_management/subscriptions/proxy_order_syncer_spec.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require 'spec_helper' + module OrderManagement module Subscriptions describe ProxyOrderSyncer do diff --git a/engines/order_management/spec/services/order_management/subscriptions/summary_spec.rb b/engines/order_management/spec/services/order_management/subscriptions/summary_spec.rb index 5e6360c542..454e2e5ba3 100644 --- a/engines/order_management/spec/services/order_management/subscriptions/summary_spec.rb +++ b/engines/order_management/spec/services/order_management/subscriptions/summary_spec.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require 'spec_helper' + module OrderManagement module Subscriptions describe Summary do