mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Per review, fix various syntax/misspell
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
= t('components.tag_rule_group_form.no_rules_yet')
|
||||
- else
|
||||
- group[:rules].each do |rule|
|
||||
-rule_index += 1
|
||||
- rule_index += 1
|
||||
= render(TagRuleFormComponent.new(rule: rule,
|
||||
index: rule_index,
|
||||
customer_tags: group[:tags],
|
||||
|
||||
@@ -19,7 +19,7 @@ module Admin
|
||||
end
|
||||
|
||||
respond_with do |format|
|
||||
return format.turbo_stream { render :new, status: }
|
||||
format.turbo_stream { render :new, status: }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
.no_tags
|
||||
= t('.no_tags_yet')
|
||||
|
||||
= render 'admin/enterprises/form/tag_rules/default_rules', f: f, current_rule_index: current_rule_index
|
||||
= render 'admin/enterprises/form/tag_rules/default_rules', f:, current_rule_index:
|
||||
|
||||
#customer-tag-rule
|
||||
- tag_groups(rules).each_with_index do |group, group_index|
|
||||
|
||||
@@ -72,7 +72,7 @@ RSpec.describe ProductTagRulesFilterer do
|
||||
expect(filterer.call).not_to include(variant_hidden_by_rule.variant)
|
||||
end
|
||||
|
||||
context "with mutiple conflicting rules" do
|
||||
context "with multiple conflicting rules" do
|
||||
it "applies the hide rule" do
|
||||
# Customer has show rule tag and hide rule tag
|
||||
customer.update_attribute(:tag_list,
|
||||
@@ -117,7 +117,7 @@ RSpec.describe ProductTagRulesFilterer do
|
||||
expect(filterer.call).to include(variant_hidden_by_default.variant)
|
||||
end
|
||||
|
||||
context "with mutiple conflicting rules applying to same variant" do
|
||||
context "with multiple conflicting rules applying to same variant" do
|
||||
it "applies the show rule" do
|
||||
# customer has show rule and hide rule tag
|
||||
customer.update_attribute(:tag_list,
|
||||
|
||||
Reference in New Issue
Block a user