summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorluca-landa <lucalanda@hotmail.it>2021-03-19 18:31:51 +0100
committerluca-landa <lucalanda@hotmail.it>2021-03-19 18:31:51 +0100
commit57a0e3d10363323269700d58c18359939f745759 (patch)
tree625c03bd3f67265becbe2a330888f08e2b496006 /spec
parent19fcbb18387dd6a2d28d386fd5510203d6f18a77 (diff)
Set promotion rules model paths similar to Solidus
This allows for naming the models in a way more consistent to Solidus (which doesn't include "PromotionRule" in the name of the class). Also, it easily allows for the promotion rules to be displayed with a better name in the admin panel (which just uses the promotions model name humanized).
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/solidus_subscriptions/promotion/rules/subscription_creation_order_spec.rb (renamed from spec/lib/solidus_subscriptions/subscription_creation_order_promotion_rule_spec.rb)2
-rw-r--r--spec/lib/solidus_subscriptions/promotion/rules/subscription_installment_order_spec.rb (renamed from spec/lib/solidus_subscriptions/subscription_installment_order_promotion_rule_spec.rb)2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/solidus_subscriptions/subscription_creation_order_promotion_rule_spec.rb b/spec/lib/solidus_subscriptions/promotion/rules/subscription_creation_order_spec.rb
index 651c678..f7975f1 100644
--- a/spec/lib/solidus_subscriptions/subscription_creation_order_promotion_rule_spec.rb
+++ b/spec/lib/solidus_subscriptions/promotion/rules/subscription_creation_order_spec.rb
@@ -1,6 +1,6 @@
require 'spec_helper'
-RSpec.describe SolidusSubscriptions::SubscriptionCreationOrderPromotionRule do
+RSpec.describe SolidusSubscriptions::Promotion::Rules::SubscriptionCreationOrder do
let(:rule) { described_class.new }
describe '#applicable' do
diff --git a/spec/lib/solidus_subscriptions/subscription_installment_order_promotion_rule_spec.rb b/spec/lib/solidus_subscriptions/promotion/rules/subscription_installment_order_spec.rb
index 2e0019c..d17fa61 100644
--- a/spec/lib/solidus_subscriptions/subscription_installment_order_promotion_rule_spec.rb
+++ b/spec/lib/solidus_subscriptions/promotion/rules/subscription_installment_order_spec.rb
@@ -1,6 +1,6 @@
require 'spec_helper'
-RSpec.describe SolidusSubscriptions::SubscriptionInstallmentOrderPromotionRule do
+RSpec.describe SolidusSubscriptions::Promotion::Rules::SubscriptionInstallmentOrder do
let(:rule) { described_class.new }
describe '#applicable' do